Skip to main content

TreeListOptionsView.ShowTreeLines Property

Gets or sets whether to show the node hierarchy lines in the row indent area.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.1.dll

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


public DefaultBoolean ShowTreeLines { get; set; }

Property Value

Type Default Description
DefaultBoolean Default

True to display the node hierarchy lines; False to not; Default uses the currently applied skin settings.

Available values:

Name Description Return Value

The value is true.



The value is false.



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


Property Paths

You can access this nested property as listed below:

Object Type Path to ShowTreeLines
.OptionsView .ShowTreeLines


The TreeList control can display lines indicating node tree hierarchy.


By default, tree lines are displayed or hidden depending on the currently applied skin. Use the ShowTreeLines property to explicitly specify whether to display tree lines. If the this option is enabled, you can specify the style of node hierarchy lines using the TreeListOptionsView.TreeLineStyle property.

By default, node expand/collapse buttons are drawn on a background that detaches the buttons from the tree lines. You can hide this background by setting the CustomDrawNodeButtonEventArgs.AllowDrawBackground property to false in a TreeList.CustomDrawNodeButton event handler.

See Also