ApplicationEvents4_DocumentBeforeCloseEventHandler Delegate
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A Delegate type used to add an event handler for the DocumentBeforeClose event. The DocumentBeforeClose event occurs immediately before any open document closes.
public delegate void ApplicationEvents4_DocumentBeforeCloseEventHandler(Document ^ Doc, [Runtime::InteropServices::Out] bool % Cancel);
[System.Runtime.InteropServices.ComVisible(false)]
public delegate void ApplicationEvents4_DocumentBeforeCloseEventHandler(Document Doc, out bool Cancel);
type ApplicationEvents4_DocumentBeforeCloseEventHandler = delegate of Document * bool -> unit
Public Delegate Sub ApplicationEvents4_DocumentBeforeCloseEventHandler(Doc As Document, ByRef Cancel As Boolean)
Parameters
- Doc
- Document
The document that's being closed.
- Cancel
- 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.
- Attributes