Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CustomDrawBackgroundEventArgs.Graphics Property

Returns an object that provides painting facilities.

Namespace: DevExpress.XtraDiagram

Assembly: DevExpress.XtraDiagram.v24.2.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