Back to Devexpress

CustomDrawNodeButtonEventArgs.Expanded Property

windowsforms-devexpress-dot-xtratreelist-dot-customdrawnodebuttoneventargs-130ca20f.md

latest2.0 KB
Original Source

CustomDrawNodeButtonEventArgs.Expanded Property

Gets a value indicating whether the painted button’s corresponding node is expanded.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
public bool Expanded { get; }
vb
Public ReadOnly Property Expanded As Boolean

Property Value

TypeDescription
Boolean

true if the painted button’s corresponding node is expanded; otherwise false.

|

Remarks

Clicking a node button results in expanding/collapsing its corresponding node. By default, node buttons corresponding to expanded and collapsed nodes display ‘-‘ and ‘+’ characters respectively. However, nodes can be painted using custom draw by handling the TreeList.CustomDrawNodeButton event. This event parameter’s Expanded property allows you to distinguish between node buttons corresponding to expanded and collapsed nodes. Use this property to provide different painting for buttons corresponding to different node states.

See Also

Handled

CustomDrawNodeButtonEventArgs Class

CustomDrawNodeButtonEventArgs Members

DevExpress.XtraTreeList Namespace