AppEvents_ProtectedViewWindowBeforeCloseEventHandler Delegate

Definition

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 workbook in a Protected View window closes.

public delegate void AppEvents_ProtectedViewWindowBeforeCloseEventHandler(ProtectedViewWindow ^ Pvw, XlProtectedViewCloseReason Reason, [Runtime::InteropServices::Out] bool % Cancel);
[System.Runtime.InteropServices.ComVisible(false)]
public delegate void AppEvents_ProtectedViewWindowBeforeCloseEventHandler(ProtectedViewWindow Pvw, XlProtectedViewCloseReason Reason, out bool Cancel);
Public Delegate Sub AppEvents_ProtectedViewWindowBeforeCloseEventHandler(Pvw As ProtectedViewWindow, Reason As XlProtectedViewCloseReason, ByRef Cancel As Boolean)

Parameters

Pvw
ProtectedViewWindow

An object that represents the Protected View window that is closed.

Reason
XlProtectedViewCloseReason

A constant that specifies the reason the Protected View window is closed.

Cancel
Boolean

false when the event occurs. If the event procedure sets this parameter to true, the window does not close when the procedure is finished.

Attributes

Applies to