Back to Devexpress

TreeListOptionsView.ShowHierarchyIndentationLines Property

windowsforms-devexpress-dot-xtratreelist-dot-treelistoptionsview-5f7ab751.md

latest4.2 KB
Original Source

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.v25.2.dll

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

Declaration

csharp
[DefaultValue(DefaultBoolean.Default)]
[XtraSerializableProperty]
public DefaultBoolean ShowHierarchyIndentationLines { get; set; }
vb
<DefaultValue(DefaultBoolean.Default)>
<XtraSerializableProperty>
Public Property ShowHierarchyIndentationLines As DefaultBoolean

Property Value

TypeDefaultDescription
DefaultBooleanDefault

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:

NameDescriptionReturn 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 TypePath 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.

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.

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

See Also

ShowFirstLines

ShowHorzLines

ShowVertLines

HierarchyColumn

HierarchyFieldName

RowImagesShowMode

TreeListOptionsView Class

TreeListOptionsView Members

DevExpress.XtraTreeList Namespace