Export (0) Print
Expand All
Expand Minimize

ApplicationEvents4_ProtectedViewWindowBeforeCloseEventHandler Delegate

Office 2010

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)

[ComVisibleAttribute(false)]
public delegate void ApplicationEvents4_ProtectedViewWindowBeforeCloseEventHandler(
	ProtectedViewWindow PvWindow,
	int CloseReason,
	out bool Cancel
)

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.
If the ProtectedViewWindowsBeforeClose event is called as part of the Edit(Object, Object, Object) method, setting Cancel to true produces no action.

Community Additions

ADD
Show:
© 2014 Microsoft