Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CustomDrawNodeButtonEventArgs.Expanded Property

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

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

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

#Declaration

public bool Expanded { get; }

#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