Back to Devexpress

TreeList.PreviewIndent Property

windowsforms-devexpress-dot-xtratreelist-dot-treelist-8ca8093e.md

latest2.1 KB
Original Source

TreeList.PreviewIndent Property

Gets or sets the left horizontal offset of content in preview sections.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
[DefaultValue(-1)]
[DXCategory("Appearance")]
[XtraSerializableProperty(XtraSerializationFlags.AutoScaleX)]
public int PreviewIndent { get; set; }
vb
<DefaultValue(-1)>
<XtraSerializableProperty(XtraSerializationFlags.AutoScaleX)>
<DXCategory("Appearance")>
Public Property PreviewIndent As Integer

Property Value

TypeDefaultDescription
Int32-1

An integer value that specifies the left horizontal offset of content in a preview section, in pixels. -1 to use the corresponding skin setting(s).

|

Remarks

csharp
treeList.PreviewIndent = 20;
vb
treeList.PreviewIndent = 20

The image below shows the result.

Run Demo

See Also

ShowPreview

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace