This documentation is archived and is not being maintained.

PageSettings.Bounds Property

Gets the size of the page, taking into account the page orientation specified by the Landscape property.

Namespace: System.Drawing.Printing
Assembly: System.Drawing (in system.drawing.dll)

public Rectangle Bounds { get; }
/** @property */
public Rectangle get_Bounds ()

public function get Bounds () : Rectangle

Not applicable.

Property Value

A Rectangle that represents the length and width, in hundredths of an inch, of the page.

Exception typeCondition


The printer named in the PrinterSettings.PrinterName property does not exist.

Use the Bounds property along with the Margins property to calculate the printing area for the page.

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.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0