Expand Minimize

ApplicationEvents4_DocumentBeforeSaveEventHandler Delegate

A Delegate type used to add an event handler for the DocumentBeforeSave event. The DocumentBeforeSave event occurs before any open document is saved.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

[ComVisibleAttribute(false)]
public delegate void ApplicationEvents4_DocumentBeforeSaveEventHandler(
	Document Doc,
	ref bool SaveAsUI,
	out bool Cancel
)

Parameters

Doc
Type: Microsoft.Office.Interop.Word.Document
The document that's being saved.
SaveAsUI
Type: System.Boolean%
True to display the Save As dialog box.
Cancel
Type: System.Boolean%
False when the event occurs. If the event procedure sets this argument to True, the document isn't saved when the procedure is finished.

Community Additions

ADD
Show:
© 2014 Microsoft