IAppEvents.ProtectedViewWindowBeforeClose Method
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Sub ProtectedViewWindowBeforeClose ( _
Pvw As ProtectedViewWindow, _
Reason As XlProtectedViewCloseReason, _
<OutAttribute> ByRef Cancel As Boolean _
)
'Usage
Dim instance As IAppEvents
Dim Pvw As ProtectedViewWindow
Dim Reason As XlProtectedViewCloseReason
Dim Cancel As Boolean
instance.ProtectedViewWindowBeforeClose(Pvw, _
Reason, Cancel)
void ProtectedViewWindowBeforeClose(
ProtectedViewWindow Pvw,
XlProtectedViewCloseReason Reason,
out bool Cancel
)
Parameters
- Cancel
Type: System.Boolean