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.v20.1.dll

Declaration

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

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.

See Also