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

CustomDrawEventArgs.Graphics Property

Gets an object used to paint.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

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

#Declaration

public Graphics Graphics { get; }

#Property Value

Type Description
Graphics

A System.Drawing.Graphics object used to paint.

#Remarks

The Graphics property gives you access to an object representing the painting surface and providing a means to paint. When performing custom drawing, you can use methods and properties of this object to accomplish the task. Another element required to perform correct painting is the object’s bounding rectangle. This is provided by the CustomDrawEventArgs.Bounds property.

See Also