PageSettings.PrintableArea Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the bounds of the printable area of the page for the printer.

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

public RectangleF PrintableArea { get; }

Property Value

Type: System.Drawing.RectangleF

A RectangleF representing the length and width, in hundredths of an inch, of the area the printer is capable of printing in.

The PrintableArea property returns the correct value, whether the page orientation is landscape or portrait.

You can use this property to print outside the margins of the page, but within the printable area.

.NET Framework
Available since 2.0
Return to top
Show: