ApplicationEvents4_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 document in the specified protected view window.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
<ComVisibleAttribute(False)> _
Public Delegate Sub ApplicationEvents4_ProtectedViewWindowBeforeEditEventHandler ( _
    PvWindow As ProtectedViewWindow, _
    <OutAttribute> ByRef Cancel As Boolean _
)
'Usage
Dim instance As New ApplicationEvents4_ProtectedViewWindowBeforeEditEventHandler(AddressOf HandlerMethod)
[ComVisibleAttribute(false)]
public delegate void ApplicationEvents4_ProtectedViewWindowBeforeEditEventHandler(
    ProtectedViewWindow PvWindow,
    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 document.

See Also

Reference

Microsoft.Office.Interop.Word Namespace