Back to Devexpress

CustomDrawEventArgs.Graphics Property

windowsforms-devexpress-dot-xtraverticalgrid-dot-events-dot-customdraweventargs.md

latest1.9 KB
Original Source

CustomDrawEventArgs.Graphics Property

Gets an object used to paint.

Namespace : DevExpress.XtraVerticalGrid.Events

Assembly : DevExpress.XtraVerticalGrid.v25.2.dll

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

Declaration

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

Property Value

TypeDescription
Graphics

A Graphics object providing painting facilities.

|

Remarks

The Graphics property gives you access to an object that represents the painting surface and provides a means to perform painting. When custom painting, you can use this object’s methods and properties to draw text, graphics primitives and images. Note that painted elements must reside within the area specified by the CustomDrawEventArgs.Bounds property. Otherwise, they will overlap other elements within the control.

See Also

Bounds

CustomDrawEventArgs Class

CustomDrawEventArgs Members

DevExpress.XtraVerticalGrid.Events Namespace