Back to Devexpress

TreeListOptionsView.ShowIndentAsRowStyle Property

windowsforms-devexpress-dot-xtratreelist-dot-treelistoptionsview-09a95534.md

latest3.5 KB
Original Source

TreeListOptionsView.ShowIndentAsRowStyle Property

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

Declaration

csharp
[DefaultValue(false)]
[XtraSerializableProperty]
public virtual bool ShowIndentAsRowStyle { get; set; }
vb
<DefaultValue(False)>
<XtraSerializableProperty>
Public Overridable Property ShowIndentAsRowStyle As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true to paint tree indents using the appearance settings of their corresponding nodes; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ShowIndentAsRowStyle
TreeList

.OptionsView .ShowIndentAsRowStyle

|

Remarks

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

csharp
// 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

vb
' 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

CustomDrawNodeIndent

TreeListOptionsView Class

TreeListOptionsView Members

DevExpress.XtraTreeList Namespace