Back to Devexpress

VGridControlBase.TreeButtonStyle Property

windowsforms-devexpress-dot-xtraverticalgrid-dot-vgridcontrolbase-f944ac1a.md

latest3.2 KB
Original Source

VGridControlBase.TreeButtonStyle Property

Gets or sets the style which is used to display category row tree buttons.

Namespace : DevExpress.XtraVerticalGrid

Assembly : DevExpress.XtraVerticalGrid.v25.2.dll

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

Declaration

csharp
[DefaultValue(TreeButtonStyle.Default)]
[XtraSerializableProperty]
public TreeButtonStyle TreeButtonStyle { get; set; }
vb
<DefaultValue(TreeButtonStyle.Default)>
<XtraSerializableProperty>
Public Property TreeButtonStyle As TreeButtonStyle

Property Value

TypeDefaultDescription
TreeButtonStyleDefault

A TreeButtonStyle enumeration value that specifies the style which is used to display category row tree buttons.

|

Available values:

NameDescription
Default

Either the Explorer Button, displayed on the right, or the Tree Button, displayed on the left, depending on the current paint scheme.

| | TreeView |

The Tree Button, displayed on the left (the appearance is dependent on the current paint scheme):

“DevExpress Style” skin:

Office2003 style:

| | ExplorerBar |

The Explorer Button, displayed on the right (the appearance is dependent on the current paint scheme):

“DevExpress Style” skin:

|

Remarks

The TreeButtonStyle property specifies the appearance of tree buttons used to expand/collapse category rows. If this property is set to the TreeButtonStyle.TreeView value, tree buttons are displayed as a tree view button and are shown to the left. If this property is set to the TreeButtonStyle.ExplorerBar value, tree buttons are displayed as an explorer button and are shown to the right.

Tree buttons can also be custom painted. To do this, handle the VGridControlBase.CustomDrawTreeButton event.

See Also

CustomDrawTreeButton

ShowCollapseButtons

VGridControlBase Class

VGridControlBase Members

DevExpress.XtraVerticalGrid Namespace