Export (0) Print
Expand All

PrinterSettings.CreateMeasurementGraphics Method (PageSettings)

Returns a Graphics that contains printer information associated with the specified PageSettings.

Namespace:  System.Drawing.Printing
Assembly:  System.Drawing (in System.Drawing.dll)

public Graphics CreateMeasurementGraphics(
	PageSettings pageSettings
)

Parameters

pageSettings
Type: System.Drawing.Printing.PageSettings

The PageSettings to retrieve a graphics object for.

Return Value

Type: System.Drawing.Graphics
A Graphics that contains printer information from the PageSettings.

With the CreateMeasurementGraphics method, you can obtain a Graphics for the printer without creating a print job. Use the Graphics to make decisions on how to layout visual elements like fonts, sizes, and type styles of a complex print job.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft