ApplicationEvents4.DocumentBeforeClose Method
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Sub DocumentBeforeClose ( _
Doc As Document, _
<OutAttribute> ByRef Cancel As Boolean _
)
'Usage
Dim instance As ApplicationEvents4
Dim Doc As Document
Dim Cancel As Boolean
instance.DocumentBeforeClose(Doc, Cancel)
void DocumentBeforeClose(
Document Doc,
out bool Cancel
)
Parameters
- Doc
Type: Microsoft.Office.Interop.Word.Document
- Cancel
Type: System.Boolean%