IApplicationEvents2.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, _
    ByRef Cancel As Boolean _
)
'Usage
Dim instance As IApplicationEvents2
Dim Doc As Document
Dim Cancel As Boolean

instance.DocumentBeforeClose(Doc, Cancel)
void DocumentBeforeClose(
    Document Doc,
    ref bool Cancel
)

Parameters

See Also

Reference

IApplicationEvents2 Interface

IApplicationEvents2 Members

Microsoft.Office.Interop.Word Namespace