PrintControllerWithStatusDialog.OnEndPage 方法

此方法支持 .NET 基础结构,但不适合在代码中直接使用。

完成确定何时以及如何打印文档页的控制序列。

**命名空间:**System.Windows.Forms
**程序集:**System.Windows.Forms(在 system.windows.forms.dll 中)

语法

声明
Public Overrides Sub OnEndPage ( _
    document As PrintDocument, _
    e As PrintPageEventArgs _
)
用法
Dim instance As PrintControllerWithStatusDialog
Dim document As PrintDocument
Dim e As PrintPageEventArgs

instance.OnEndPage(document, e)
public override void OnEndPage (
    PrintDocument document,
    PrintPageEventArgs e
)
public:
virtual void OnEndPage (
    PrintDocument^ document, 
    PrintPageEventArgs^ e
) override
public void OnEndPage (
    PrintDocument document, 
    PrintPageEventArgs e
)
public override function OnEndPage (
    document : PrintDocument, 
    e : PrintPageEventArgs
)

参数

  • document
    PrintDocument,它表示当前正在打印的文档。

备注

PrintControllerWithStatusDialog 类调用封装的 PrintControllerPrintController.OnEndPage 方法。

OnEndPage 方法在 PrintDocument 引发 PrintPage 事件后立即调用。若在 PrintDocumentPrintPage 事件中引发了异常,则不调用 OnEndPage

OnStartPrint 方法创建发送到打印机的 Graphics 对象。调用 OnStartPrint 之后,OnStartPage 方法将 Graphics 对象设置为单页图形。(使用 OnStartPage 可以设置文档页的打印方式。例如,可以分别调整每页的页面设置。)OnEndPage 清除 Graphics 对象,而 OnEndPrint 方法释放该对象。

平台

Windows 98、Windows 2000 SP4、Windows CE、Windows Millennium Edition、Windows Mobile for Pocket PC、Windows Mobile for Smartphone、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:2.0、1.1、1.0

请参见

参考

PrintControllerWithStatusDialog 类
PrintControllerWithStatusDialog 成员
System.Windows.Forms 命名空间