CustomDrawNodeButtonEventArgs.Expanded Property

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

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v20.1.dll

Declaration

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

Property Value

Type Description
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