Skip to main content

TreeListOptionsView.ShowHierarchyIndentationLines Property

Gets or sets whether to draw horizontal gridlines in a column displaying the node expand buttons for the entire width of the column, including tree indents.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.1.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList

Declaration

[DefaultValue(DefaultBoolean.Default)]
[XtraSerializableProperty]
public DefaultBoolean ShowHierarchyIndentationLines { get; set; }

Property Value

Type Default Description
DefaultBoolean Default

Default to do not draw the gridlines for hierarchy indentations in the first column, and draw otherwise. True or False to draw or do not draw, respectively, the gridlines regardless of the number of the column.

Available values:

Name Description Return Value
True

The value is true.

0

False

The value is false.

1

Default

The value is specified by a global option or a higher-level object.

2

Property Paths

You can access this nested property as listed below:

Object Type Path to ShowHierarchyIndentationLines
TreeList
.OptionsView .ShowHierarchyIndentationLines

Remarks

By default, if the node expand buttons are displayed in the first column, the tree list control does not draw horizontal gridlines for the tree indents, as shown in the figure below.

TreeListOptionsView_ShowHierarchyIndentationLines_False

If the node expand buttons are displayed in any other column, these gridlines are drawn for the entire width of the column by default.

Use the ShowHierarchyIndentationLines property to explicitly specify whether to draw these gridlines. In the figure below, the gridlines are drawn in the first column for the entire column width.

TreeListOptionsView_ShowHierarchyIndentationLines_True

To specify the column that displays the node expand buttons, use the TreeList.HierarchyColumn or TreeList.HierarchyFieldName property.

See Also