AppEvents_ProtectedViewWindowBeforeCloseEventHandler Delegate
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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