PrintForm.OnEndPrint 方法

引发 EndPrint 事件。

命名空间:  Microsoft.VisualBasic.PowerPacks.Printing
程序集:  Microsoft.VisualBasic.PowerPacks.Vs(在 Microsoft.VisualBasic.PowerPacks.Vs.dll 中)

语法

声明
Protected Overridable Sub OnEndPrint ( _
    e As PrintEventArgs _
)
protected virtual void OnEndPrint(
    PrintEventArgs e
)
protected:
virtual void OnEndPrint(
    PrintEventArgs^ e
)
abstract OnEndPrint : 
        e:PrintEventArgs -> unit 
override OnEndPrint : 
        e:PrintEventArgs -> unit 
protected function OnEndPrint(
    e : PrintEventArgs
)

参数

备注

引发事件时会通过委托调用事件处理程序。有关更多信息,请参见 引发事件

OnEndPrint 方法还允许派生类对事件进行处理而不必附加委托。这是在派生类中处理事件的首选技术。

对继承者的说明

在派生类中重写 OnEndPrint 时,确保调用基类的 OnEndPrint 方法,以使注册的委托能接收事件。

.NET Framework 安全性

请参见

参考

PrintForm 类

Microsoft.VisualBasic.PowerPacks.Printing 命名空间

其他资源

PrintForm 组件 (Visual Basic)

如何:使用 PrintForm 组件打印窗体 (Visual Basic)

如何:打印窗体的工作区 (Visual Basic)

如何:打印窗体的工作区和非工作区 (Visual Basic)

如何:打印可滚动的窗体 (Visual Basic)

部署引用 PrintForm 组件的应用程序 (Visual Basic)