ApplicationEvents4_ProtectedViewWindowBeforeCloseEventHandler delegate
Office 2013 and later
A Delegate type used to add an event handler for the ProtectedViewWindowBeforeClose event. The ProtectedViewWindowBeforeClose event occurs immediately before a protected view window or a document in a protected view window closes.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Parameters
- PvWindow
- Type: Microsoft.Office.Interop.Word.ProtectedViewWindow
The protected view window that is closed.
- CloseReason
- Type: System.Int32
A constant in the WdProtectedViewCloseReason enumeration that specifies the reason the protected view window is closed.
- Cancel
- Type: System.Boolean
false when the event occurs. If the event procedure sets this argument to true, the window does not close when the procedure is finished.
NoteIf the ProtectedViewWindowsBeforeClose event is called as part of the Edit(Object, Object, Object) method, setting Cancel to true produces no action.
Show: