←Select platform

PageRectangle Property

Summary

Rectangular area that represents the total area of the page.

Syntax
C#
C++/CLI
public RectangleF PageRectangle { get; set; } 
public:  
   property System::Drawing::RectangleF^ PageRectangle 
   { 
      System::Drawing::RectangleF^ get() 
      void set(System::Drawing::RectangleF^ value) 
   } 

Property Value

A System.Drawing.Rectangle represents the total area of the page.

Remarks

This specifies the destination rectangle on the page to where the image is to be printed. Normally, you obtain the page rectangle through the System.Drawing.Printing.PrintPageEventArgs.MarginBounds or the System.Drawing.Printing.PrintPageEventArgs object passed to your System.Drawing.Printing.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 System.Drawing.Printing.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.

Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.