Back to Devexpress

PrintRowEventArgs.Graphics Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-printing-dot-printroweventargs-c9d5a9b8.md

latest1.4 KB
Original Source

PrintRowEventArgs.Graphics Property

Gets a GDI+ grid’s drawing surface.

Namespace : DevExpress.XtraGrid.Views.Printing

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDescription
Graphics

A Graphics object.

|

Remarks

For example, you can use the Graphics object to calculate the rectangle of specific text before sending it to the printout/export output. To accomplish this, use the Graphics.MeasureString method.

See Also

PrintRowEventArgs Class

PrintRowEventArgs Members

DevExpress.XtraGrid.Views.Printing Namespace