CustomDrawItemEventArgs.Graphics Property

Returns an object that provides painting facilities.

Namespace: DevExpress.XtraDiagram

Assembly: DevExpress.XtraDiagram.v21.2.dll


public Graphics Graphics { get; }

Property Value

Type Description

A System.Drawing.Graphics object that provides painting facilities.



If the DirectX hardware acceleration is enabled for the DiagramControl, the Graphics property is not in effect. Use the GraphicsCache property instead.

If the font’s Unit property is not set to GraphicsUnit.Pixel, the font size of the text drawn by the Graphics.DrawString method is scaled based on the DPI settings.

See Also