Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.4.3
|
Leadtools.Controls Assembly > Leadtools.Controls Namespace > RasterImagePrinter Class : PageRectangle Property |
public RectangleF PageRectangle {get; set;}
'Declaration
Public Property PageRectangle As RectangleF
This specifies the destination rectangle on the page to where the image is to be printed. Normally, you obtain the page rectangle through the MarginBounds or the PrintPageEventArgs object passed to your PrintPageEventHandler.
You can also pass RectangleF.Empty to use the whole print area. The print area will then be calculated using the UseMargins property value and the page and margins bounds values passed through PrintPageEventArgs.
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.