ApplicationEvents4_DocumentBeforeSaveEventHandler 委托

定义

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

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

参数

Doc
Document

正在保存的文档。

SaveAsUI
Boolean

如果为 True ,则显示“另存为”对话框。

Cancel
Boolean

False 在事件发生时。 如果事件过程将此参数设置为 True,则过程完成后不会保存文档。

属性

适用于