AppEvents_WorkbookBeforePrintEventHandler 委托

定义

用于为事件添加事件处理程序的WorkbookBeforePrint委托类型。 在打印任何打开的工作簿之前, 将发生 WorkbookBeforePrint 事件。

public delegate void AppEvents_WorkbookBeforePrintEventHandler(Workbook ^ Wb, [Runtime::InteropServices::Out] bool % Cancel);
[System.Runtime.InteropServices.ComVisible(false)]
public delegate void AppEvents_WorkbookBeforePrintEventHandler(Workbook Wb, out bool Cancel);
Public Delegate Sub AppEvents_WorkbookBeforePrintEventHandler(Wb As Workbook, ByRef Cancel As Boolean)

参数

Wb
Workbook

工作簿。

Cancel
Boolean

False 在事件发生时。 如果该事件过程将此参数设置为 True,则该过程完成后将不打印工作簿。

属性

适用于