ApplicationEvents4.ProtectedViewWindowBeforeClose Method
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Sub ProtectedViewWindowBeforeClose ( _
PvWindow As ProtectedViewWindow, _
CloseReason As Integer, _
<OutAttribute> ByRef Cancel As Boolean _
)
'Usage
Dim instance As ApplicationEvents4
Dim PvWindow As ProtectedViewWindow
Dim CloseReason As Integer
Dim Cancel As Boolean
instance.ProtectedViewWindowBeforeClose(PvWindow, _
CloseReason, Cancel)
void ProtectedViewWindowBeforeClose(
ProtectedViewWindow PvWindow,
int CloseReason,
out bool Cancel
)
Parameters
- PvWindow
Type: Microsoft.Office.Interop.Word.ProtectedViewWindow
- CloseReason
Type: System.Int32
- Cancel
Type: System.Boolean%