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 Class

Provides data for the TreeList.CustomDrawNodeButton event.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

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

#Declaration

public class CustomDrawNodeButtonEventArgs :
    CustomDrawNodeEventArgs<OpenCloseButtonInfoArgs>

#Remarks

The TreeList.CustomDrawNodeButton event gives you the ability to perform custom painting of buttons used to expand/collapse parent nodes. The basic information required to paint an element is supplied by the CustomDrawNodeButtonEventArgs class via its properties inherited from the CustomDrawEventArgs class. Introduces properties which provide node button specific information which includes the node corresponding to the painted button, its expand state, etc.

CustomDrawNodeButtonEventArgs objects are automatically created and passed to TreeList.CustomDrawNodeButton event handlers.

#Inheritance

Object
EventArgs
CustomDrawEventArgs
DevExpress.XtraTreeList.CustomDrawObjectEventArgs<DevExpress.Utils.Drawing.OpenCloseButtonInfoArgs>
DevExpress.XtraTreeList.CustomDrawNodeEventArgs<DevExpress.Utils.Drawing.OpenCloseButtonInfoArgs>
CustomDrawNodeButtonEventArgs
See Also