CustomDrawEventArgs.Graphics Property
A GDI+ drawing surface. Use the CustomDrawEventArgs.Cache property instead if you enable the DirectX hardware acceleration.
Namespace: DevExpress.XtraGrid.Views.Base
Assembly: DevExpress.XtraGrid.v22.2.dll
NuGet Package: DevExpress.Win.Grid
Declaration
Property Value
Type | Description |
---|---|
Graphics | A Graphics object providing a means for painting. |
Remarks
The Graphics property returns an object representing the painting surface and providing a means to paint. When custom painting, you can use methods and properties of this object to paint 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.