Leadtools.WinForms Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.8.31
PageRectangle Property
See Also 
Leadtools.WinForms Namespace > RasterImagePrinter Class : PageRectangle Property




Gets or sets the rectangular area that represents the total area of the page.

Syntax

Visual Basic (Declaration) 
Public Property PageRectangle As RectangleF
Visual Basic (Usage)Copy Code
Dim instance As RasterImagePrinter
Dim value As RectangleF
 
instance.PageRectangle = value
 
value = instance.PageRectangle
C# 
public RectangleF PageRectangle {get; set;}
Managed Extensions for C++ 
public: __property RectangleF get_PageRectangle();
public: __property void set_PageRectangle( 
   RectangleF value
);
C++/CLI 
public:
property RectangleF PageRectangle {
   RectangleF get();
   void set (RectangleF value);
}

Return Value

A Rectangle represents the total area of the page.

Example

Refer to ImageRectangle example.

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 MarginBounds or the PrintPageEventArgs object passed to your PrintPageEventHandler.

You can also pass RectangleF.Empty to use the whole print page.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also