Creates a System.Drawing.Graphics associated with the specified page settings and optionally specifying the origin at the margins.
- pageSettings
- The System.Drawing.Printing.PageSettings to retrieve a System.Drawing.Graphics object for.
- honorOriginAtMargins
- true to specify the origin at the margins; otherwise, false.
A System.Drawing.Graphics that contains printer information from the System.Drawing.Printing.PageSettings.
The PrinterSettings.CreateMeasurementGraphics method allows you to obtain a System.Drawing.Graphics for the printer without creating a print job. 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.