引发 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
)
参数
- e
类型:System.Drawing.Printing.PrintEventArgs
一个 EventArgs,其中包含事件数据。
备注
引发事件时会通过委托调用事件处理程序。有关更多信息,请参见 引发事件。
OnEndPrint 方法还允许派生类对事件进行处理而不必附加委托。这是在派生类中处理事件的首选技术。
对继承者的说明
在派生类中重写 OnEndPrint 时,确保调用基类的 OnEndPrint 方法,以使注册的委托能接收事件。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
请参见
参考
Microsoft.VisualBasic.PowerPacks.Printing 命名空间
其他资源
如何:使用 PrintForm 组件打印窗体 (Visual Basic)