Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

NuGet Package: DevExpress.Win.Navigation

#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