PrinterSettings.CreateMeasurementGraphics Method (Boolean)

 

Returns a Graphics that contains printer information, optionally specifying the origin at the margins.

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

public Graphics CreateMeasurementGraphics(
	bool honorOriginAtMargins
)

Parameters

honorOriginAtMargins
Type: System.Boolean

true to indicate the origin at the margins; otherwise, false.

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
Available since 2.0
Return to top
Show: