Skip to main content

CustomDrawNodeButtonEventArgs Class

Provides data for the TreeList.CustomDrawNodeButton event.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.1.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