Skip to main content
A newer version of this page is available. .

TreeListView.ShowRootIndent Property

Gets or sets whether to show an indent for the root node.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Grid.Core, DevExpress.Wpf.Grid.Core

Declaration

public bool ShowRootIndent { get; set; }

Property Value

Type Description
Boolean

true to show an indent for the root node; otherwise, false.

Remarks

Indents specify an offset by which data cells are horizontally shifted to the right (to the left if RTL orientation is used). This is required to indicate nesting levels, display expand buttons and images. An indent is specified by the TreeListView.RowIndent property, in pixels. The number of indents that specify the offset depends on the node’s nesting level, whether the expand button and image are required to be displayed.

If the ShowRootIndent property is set to false, an expand button and image are not displayed for the root node. In this instance, end-users cannot expand/collapse the root node. This can be done in code via the TreeListView.ExpandNode and TreeListView.CollapseNode methods, respectively.

Node

By default, the ShowRootIndent property is set to true.

See Also