Leadtools.WinForms Namespace > RasterImagePrinter Class : UseMargins Property |
public bool UseMargins {get; set;}
'Declaration Public Property UseMargins As Boolean
'Usage Dim instance As RasterImagePrinter Dim value As Boolean instance.UseMargins = value value = instance.UseMargins
public bool UseMargins {get; set;}
get_UseMargins();
set_UseMargins(value);
When the value of the UseMargins property is set to true, the maximum page area used for printing will be the PrintPageEventArgs.MarginBounds value.
When the value of the UseMargins property is set to false, the maximum page area used for printing will be the PrintPageEventArgs.PageBounds value.
For more information on the bounds and how to change them, refer to System.Drawing.Printing.PrintDocument, System.Drawing.Printing.PrinterSettings and System.Drawing.Printing.PrintPageEventArgs in MSDN.
Important: the UseMargins property is only used to calculate the printing area when the value of both PageRectangle is left to the empty default value. If you set the PageRectangle value to anything else, it is assumed that you are responsible for calculating the print area and UseMargins will be ignored.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2