System.Drawing.Printing.PrinterSettings.CreateMeasurementGraphics Method

Returns a System.Drawing.Graphics that contains printer information that is useful when creating a System.Drawing.Printing.PrintDocument.

Syntax

public System.Drawing.Graphics CreateMeasurementGraphics ()

Returns

A System.Drawing.Graphics that contains information from a printer.

Remarks

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

Requirements

Namespace: System.Drawing.Printing
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0