PrintController 成员

控制文档的打印方式。

下表列出了由 PrintController 类型公开的成员。

受保护的构造函数

  名称 说明
Protected method PrintController 初始化 PrintController 类的新实例。

页首

公共属性

  名称 说明
Public property IsPreview 获取一个值,该值指示 PrintController 是否用于打印预览。

页首

公共方法

(请参见 受保护的方法 )

  名称 说明
Public method Equals  已重载。 确定两个 Object 实例是否相等。 (从 Object 继承。)
Public method GetHashCode  用作特定类型的哈希函数。GetHashCode 适合在哈希算法和数据结构(如哈希表)中使用。 (从 Object 继承。)
Public method GetType  获取当前实例的 Type。 (从 Object 继承。)
Public method OnEndPage 在派生类中重写时,完成一个确定何时以及如何打印文档页的控制序列。
Public method OnEndPrint 在派生类中重写时,完成这样一个控制序列,它确定何时以及如何打印文档。
Public method OnStartPage 在派生类中重写时,开始一个确定何时以及如何对文档页进行打印的控制序列。
Public method OnStartPrint 在派生类中重写时,开始一个确定何时以及如何对文档进行打印的控制序列。
Public method Static ReferenceEquals  确定指定的 Object 实例是否是相同的实例。 (从 Object 继承。)
Public method ToString  返回表示当前 ObjectString。 (从 Object 继承。)

页首

受保护的方法

  名称 说明
Protected method Finalize  允许 Object 在“垃圾回收”回收 Object 之前尝试释放资源并执行其他清理操作。 (从 Object 继承。)
Protected method MemberwiseClone  创建当前 Object 的浅表副本。 (从 Object 继承。)

页首

请参见

参考

PrintController 类
System.Drawing.Printing 命名空间
PrintDocument
StandardPrintController