Partager via


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

  • Cancel
    Type: System.Boolean

    false when the event occurs. If the event procedure sets this argument to true, editing is not enabled on the workbook.

See Also

Reference

Microsoft.Office.Interop.Excel Namespace