Collapse the table of content
Expand the table of content
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 Sub ApplicationEvents4_DocumentBeforeSaveEventHandler ( _
	Doc As Document, _
	ByRef SaveAsUI As Boolean, _
	<OutAttribute> ByRef Cancel As Boolean _
Dim instance As New ApplicationEvents4_DocumentBeforeSaveEventHandler(AddressOf HandlerMethod)


Type: Microsoft.Office.Interop.Word.Document

The document that's being saved.

Type: System.Boolean

True to display the Save As dialog box.

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.

© 2015 Microsoft