Back to Devexpress

TreeListOptionsView.ShowRoot Property

windowsforms-devexpress-dot-xtratreelist-dot-treelistoptionsview-9c2cc66f.md

latest2.3 KB
Original Source

TreeListOptionsView.ShowRoot Property

Gets or sets whether the root level node indent is visible.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
[DefaultValue(true)]
[DXCategory("Visual Elements")]
[XtraSerializableProperty]
public virtual bool ShowRoot { get; set; }
vb
<DXCategory("Visual Elements")>
<DefaultValue(True)>
<XtraSerializableProperty>
Public Overridable Property ShowRoot As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true , to display the root level node indent; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ShowRoot
TreeList

.OptionsView .ShowRoot

|

Remarks

The root level node indent displays hierarchy lines (TreeListOptionsView.ShowTreeLines) and node expand/collapse buttons (TreeListOptionsView.ShowButtons).

The TreeList.TreeLevelWidth property specifies the node indent size.

See Also

TreeLevelWidth

TreeListOptionsView Class

TreeListOptionsView Members

DevExpress.XtraTreeList Namespace