ApplicationEvents4_WindowBeforeRightClickEventHandler Delegate

A Delegate type used to add an event handler for the WindowBeforeRightClick event. The WindowBeforeRightClick event occurs when the editing area of a document window is right-clicked, before the default right-click action.

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

Syntax

'Declaration
<ComVisibleAttribute(False)> _
Public Delegate Sub ApplicationEvents4_WindowBeforeRightClickEventHandler ( _
    Sel As Selection, _
    <OutAttribute> ByRef Cancel As Boolean _
)
'Usage
Dim instance As New ApplicationEvents4_WindowBeforeRightClickEventHandler(AddressOf HandlerMethod)
[ComVisibleAttribute(false)]
public delegate void ApplicationEvents4_WindowBeforeRightClickEventHandler(
    Selection Sel,
    out bool Cancel
)

Parameters

  • Cancel
    Type: System.Boolean%
    False when the event occurs. If the event procedure sets this argument to True, the default right-click action does not occur when the procedure is finished.

See Also

Reference

Microsoft.Office.Interop.Word Namespace