ApplicationEvents4_DocumentBeforeCloseEventHandler delegate
Office 2013 and later
A Delegate type used to add an event handler for the DocumentBeforeClose event. The DocumentBeforeClose event occurs immediately before any open document closes.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Parameters
- Doc
- Type: Microsoft.Office.Interop.Word.Document
The document that's being closed.
- Cancel
- Type: System.Boolean
False when the event occurs. If the event procedure sets this argument to True, the document doesn't close when the procedure is finished.
Show: