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

CustomDrawTreeButtonEventArgs(GraphicsCache, Rectangle, AppearanceObject, BaseRow, TreeButtonType) Constructor

In This Article

Initializes a new instance of the CustomDrawTreeButtonEventArgs class.

Namespace: DevExpress.XtraVerticalGrid.Events

Assembly: DevExpress.XtraVerticalGrid.v24.2.dll

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

#Declaration

public CustomDrawTreeButtonEventArgs(
    GraphicsCache cache,
    Rectangle r,
    AppearanceObject appearance,
    BaseRow row,
    TreeButtonType treeButtonType
)

#Parameters

Name Type Description
cache GraphicsCache

A GraphicsCache object which specifies the storage for the most used pens, fonts and brushes. This value is assigned to the CustomDrawEventArgs.Cache property.

r Rectangle

A Rectangle structure representing the painted element’s bounding rectangle. This value is assigned to the CustomDrawEventArgs.Bounds property.

appearance AppearanceObject

A AppearanceObject object which provides the appearance settings used to paint an element. This value is assigned to the CustomDrawEventArgs.Appearance property.

row BaseRow

A BaseRow descendant which represents the row whose element is to be painted. This value is assigned to the CustomDrawRowEventArgs.Row property.

treeButtonType TreeButtonType

A TreeButtonType enumeration member which specifies the painted button’s type. This value is assigned to the CustomDrawTreeButtonEventArgs.TreeButtonType property.

See Also