Expand Minimize

EApplication_ProtectedViewWindowBeforeCloseEventHandler Delegate

Office 2010

A delegate for an event in the corresponding object. After you implement a callback method for the event, use this delegate to connect the callback method to the event.

Occurs immediately before a protected view window or a document in a protected view window closes.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

[ComVisibleAttribute(false)]
public delegate void EApplication_ProtectedViewWindowBeforeCloseEventHandler(
	ProtectedViewWindow ProtViewWindow,
	PpProtectedViewCloseReason ProtectedViewCloseReason,
	out bool Cancel
)

Parameters

ProtViewWindow
Type: Microsoft.Office.Interop.PowerPoint.ProtectedViewWindow
The protected view window that is closed.
ProtectedViewCloseReason
Type: Microsoft.Office.Interop.PowerPoint.PpProtectedViewCloseReason
A constant 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 EApplication_ProtectedViewWindowBeforeCloseEventHandler event is called as part of the Edit(String) method of the ProtectedViewWindow object, setting Cancel to true produces no action.

Show:
© 2015 Microsoft