Skip to main content

CustomDrawItemEventArgs.Graphics Property

Returns an object that provides painting facilities.

Namespace: DevExpress.XtraDiagram

Assembly: DevExpress.XtraDiagram.v24.1.dll

NuGet Package: DevExpress.Win.Diagram

Declaration

[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public Graphics Graphics { get; }

Property Value

Type Description
Graphics

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

Remarks

Important

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