windowsforms-devexpress-dot-xtratreelist-dot-treelistoptionsview-09a95534.md
Gets or sets whether tree indents are painted using the appearance settings of their corresponding nodes.
Namespace : DevExpress.XtraTreeList
Assembly : DevExpress.XtraTreeList.v25.2.dll
NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList
[DefaultValue(false)]
[XtraSerializableProperty]
public virtual bool ShowIndentAsRowStyle { get; set; }
<DefaultValue(False)>
<XtraSerializableProperty>
Public Overridable Property ShowIndentAsRowStyle As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | false |
true to paint tree indents using the appearance settings of their corresponding nodes; otherwise, false.
|
You can access this nested property as listed below:
| Object Type | Path to ShowIndentAsRowStyle |
|---|---|
| TreeList |
.OptionsView .ShowIndentAsRowStyle
|
The images below show the Tree List when the ShowIndentAsRowStyle option is set to false and true , respectively.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShowIndentAsRowStyle property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
drag-drop-grid-rows-to-treelist/CS/DragAndDropRows/Form1.cs#L48
// The TargetNode parameter of the TreeList.DragDrop event will return a proper node, when dropping over tree indents.
treeList.OptionsView.ShowIndentAsRowStyle = true;
}
drag-drop-grid-rows-to-treelist/VB/DragAndDropRows/Form1.vb#L47
' The TargetNode parameter of the TreeList.DragDrop event will return a proper node, when dropping over tree indents.
treeList.OptionsView.ShowIndentAsRowStyle = True
End Sub
See Also