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

TcxCustomShellTreeView.Indent Property

Specifies the horizontal indent between parent and child nodes.

#Declaration

Delphi
property Indent: Integer read; write;

#Property Value

Type
Integer

#Remarks

Use the Indent property to change the indent between parent nodes and their children. The indent is set in pixels. Note that changing the Indent property also affects the position of first level nodes.

The images below show the same tree view control with the Indent property set to 19 and 30. Note the change of the horizontal offset between nodes at different levels.

The Indent is 19 The Indent is 30

The Indent property cannot be set to a value less than 19.

Note

If the ShowRoot property is set to False (expand buttons and tree lines are not displayed for root nodes), the Indent property doesn’t affect the offset of root level nodes from the left edge of the control. The contents of root level nodes are always aligned to left in this instance.

See Also