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
)

参数

  • e
    类型:PrintEventArgs

    包含事件数据的 EventArgs

备注

引发事件时,将通过委托调用事件处理程序。 有关详细信息,请参阅处理和引发事件

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)