Back to Devexpress

CustomDrawItemEventArgs.Graphics Property

windowsforms-devexpress-dot-xtradiagram-dot-customdrawitemeventargs-3d3fb4fc.md

latest1.8 KB
Original Source

CustomDrawItemEventArgs.Graphics Property

Returns an object that provides painting facilities.

Namespace : DevExpress.XtraDiagram

Assembly : DevExpress.XtraDiagram.v25.2.dll

NuGet Package : DevExpress.Win.Diagram

Declaration

csharp
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public Graphics Graphics { get; }
vb
<Browsable(False)>
<EditorBrowsable(EditorBrowsableState.Never)>
Public ReadOnly Property Graphics As Graphics

Property Value

TypeDescription
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

CustomDrawItemEventArgs Class

CustomDrawItemEventArgs Members

DevExpress.XtraDiagram Namespace