PageImageableArea 类

定义

表示页面可打印区域。Represents the area of a page that can be printed.

public ref class PageImageableArea sealed
public sealed class PageImageableArea
type PageImageableArea = class
Public NotInheritable Class PageImageableArea
继承
PageImageableArea

注解

大多数激光和喷墨打印机都必须在页面边缘附近留下一个 unprinted 区域, 以防碳粉盒在移动纸张的打印机部件上。Most laser and inkjet printers must leave an unprinted area around the edges of a page to prevent toner from getting on the parts of the printer that move the sheets. 但对于许多照片式打印机, 整个页面都是可成像的。For many photographic printers, however, the entire page is imageable.

对于包含与可成像区域PageImageableArea相同的信息并且还包括页面大小的类, 请参阅。 PrintDocumentImageableAreaFor a class that includes the same information about the imageable area as PageImageableArea and also includes page size, see PrintDocumentImageableArea.

注意

System.Printing命名空间中的类不支持在 Windows 服务或 ASP.NET 应用程序或服务中使用。Classes within the System.Printing namespace are not supported for use within a Windows service or ASP.NET application or service. 尝试从这些应用程序类型之一中使用这些类可能会产生意外的问题, 例如降低服务性能和运行时异常。Attempting to use these classes from within one of these application types may produce unexpected problems, such as diminished service performance and run-time exceptions.

如果要从 Windows 窗体应用程序进行打印, 请参阅System.Drawing.Printing命名空间。If you want to print from a Windows Forms application, see the System.Drawing.Printing namespace.

属性

ExtentHeight

获取成像区域的高度。Gets the height of the imageable area.

ExtentWidth

获取成像区域的宽度。Gets the width of the imageable area.

OriginHeight

获取原点高度,即从成像区域左上角(也称为成像区域的“原点”)到页面上边缘最近的点的距离。Gets the origin height, which is the distance from the upper-left corner of the imageable area (also called the "origin" of the imageable area) to the nearest point on the top edge of the page.

OriginWidth

获取原点宽度,即页面左边缘到成像区域左上角(也称为成像区域的“原点”)的距离。Gets the origin width, which is the distance from the left edge of the page to the upper-left corner of the imageable area (also called the "origin" of the imageable area).

方法

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回 StringPageImageableArea 表示形式。Returns the String representation of PageImageableArea.

适用于