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

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

Declaration

[DefaultValue(DefaultBoolean.Default)]
[XtraSerializableProperty]
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
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 ShowTreeLines
TreeList
.OptionsView .ShowTreeLines

Remarks

The TreeList control can display lines indicating node tree hierarchy.

TreeList_ShowTreeLines

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