Back to Devexpress

CustomDrawEventArgs.Graphics Property

windowsforms-devexpress-dot-xtratreelist-dot-customdraweventargs-8549ee93.md

latest1.8 KB
Original Source

CustomDrawEventArgs.Graphics Property

Gets an object used to paint.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
public Graphics Graphics { get; }
vb
Public ReadOnly Property Graphics As Graphics

Property Value

TypeDescription
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

Bounds

Appearance

CustomDrawEventArgs Class

CustomDrawEventArgs Members

DevExpress.XtraTreeList Namespace