AppEvents_ProtectedViewWindowBeforeEditEventHandler Delegate
A Delegate type used to add an event handler for the ProtectedViewWindowBeforeEdit event. The ProtectedViewWindowBeforeEdit event occurs immediately before editing is enabled on the workbook in the specified Protected View window.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
<ComVisibleAttribute(False)> _
Public Delegate Sub AppEvents_ProtectedViewWindowBeforeEditEventHandler ( _
Pvw As ProtectedViewWindow, _
<OutAttribute> ByRef Cancel As Boolean _
)
'Usage
Dim instance As New AppEvents_ProtectedViewWindowBeforeEditEventHandler(AddressOf HandlerMethod)
[ComVisibleAttribute(false)]
public delegate void AppEvents_ProtectedViewWindowBeforeEditEventHandler(
ProtectedViewWindow Pvw,
out bool Cancel
)
Parameters
Pvw
Type: Microsoft.Office.Interop.Excel.ProtectedViewWindowThe Protected View window that contains the workbook that is enabled for editing.
Cancel
Type: System.Booleanfalse when the event occurs. If the event procedure sets this argument to true, editing is not enabled on the workbook.