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 に設定した場合、プロシージャの終了時にドキュメントは保存されません。

属性

適用対象