ApplicationEvents4_DocumentBeforeCloseEventHandler 委托

定义

用于为事件添加事件处理程序的DocumentBeforeClose委托类型。 DocumentBeforeClose 事件发生在任何打开的文档关闭之前。

public delegate void ApplicationEvents4_DocumentBeforeCloseEventHandler(Document ^ Doc, [Runtime::InteropServices::Out] bool % Cancel);
[System.Runtime.InteropServices.ComVisible(false)]
public delegate void ApplicationEvents4_DocumentBeforeCloseEventHandler(Document Doc, out bool Cancel);
type ApplicationEvents4_DocumentBeforeCloseEventHandler = delegate of Document * bool -> unit
Public Delegate Sub ApplicationEvents4_DocumentBeforeCloseEventHandler(Doc As Document, ByRef Cancel As Boolean)

参数

Doc
Document

即将被关闭的文档。

Cancel
Boolean

的事件发生时。 如果该事件过程将此参数设置为 True ,则完成此过程后不关闭文档。

属性

适用于