Skip to main content

AccordionControl.ChildLevelIndent Property

Gets or sets the horizontal indent of child elements from their parents.

Namespace: DevExpress.XtraBars.Navigation

Assembly: DevExpress.XtraBars.v24.2.dll

Declaration

[DefaultValue(-1)]
[DXCategory("Appearance")]
public int ChildLevelIndent { get; set; }

Property Value

Type Default Description
Int32 -1

An integer value that specifies the horizontal indent of child elements from their parents.

Remarks

The AccordionControlElement.Elements collection allows you to organize elements into a nested structure. In the accordion control, child elements are horizontally indented from parents with an amount of space that depends on the applied skin.

The ChildLevelIndent property allows you to specify a custom indent. This property affects only elements on the 3rd hierarchy level and further. You can use the AccordionControl.ChildIndentStartLevel property to change this behavior and specify a hierarchy level that starts the indentation.

The AccordionControl.QueryElementIndent event allows you to specify a custom indent for each accordion item.

See Also