PageSettings.Bounds 属性

定义

获取页面的大小,并且考虑由 Landscape 属性指定的页面方向。Gets the size of the page, taking into account the page orientation specified by the Landscape property.

public:
 property System::Drawing::Rectangle Bounds { System::Drawing::Rectangle get(); };
public System.Drawing.Rectangle Bounds { get; }
member this.Bounds : System.Drawing.Rectangle
Public ReadOnly Property Bounds As Rectangle

属性值

Rectangle

Rectangle,表示页面的长度和宽度(以百分之一英寸为单位)。A Rectangle that represents the length and width, in hundredths of an inch, of the page.

例外

PrinterName 属性中命名的打印机不存在。The printer named in the PrinterName property does not exist.

注解

结合使用 Bounds 属性和 Margins 属性来计算页面的打印区域。Use the Bounds property along with the Margins property to calculate the printing area for the page.

适用于

另请参阅