PrintDocument.OriginAtMargins Property
Assembly: System.Drawing (in system.drawing.dll)
/** @property */ public boolean get_OriginAtMargins () /** @property */ public void set_OriginAtMargins (boolean value)
public function get OriginAtMargins () : boolean public function set OriginAtMargins (value : boolean)
Not applicable.
Property Value
true if the graphics origin starts at the page margins; false if the graphics origin is at the top-left corner of the printable page. The default is false.Calculating the area available to print requires knowing the physical size of the paper, the margins for the page, and the location of the Graphics object origin. When OriginAtMargins is true, the Graphics object location takes into account the PageSettings.Margins property value and the printable area of the page. When OriginAtMargins is false, only the printable area of the page is used to determine the location of the Graphics object origin, the PageSettings.Margins value is ignored.
For example, if OriginAtMargins is true, and PageSettings.Margins is set for 1 inch on each side, the Graphics object included in the PrintPageEventArgs is located 1 inch from the left and top of the page. If the printable area of the page is .25 of an inch on each side and OriginAtMargins is false, the Graphics object is located .25 of an inch from the left and top of the page.
Note: |
|---|
| The printable area of a page varies from printer to printer and is not guaranteed to be symmetrical. |
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Note: