ApplicationEvents4_DocumentBeforeCloseEventHandler 委托
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
用于为事件添加事件处理程序的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 ,则完成此过程后不关闭文档。
- 属性