Compartir a través de


WorkbookEvents_SheetBeforeRightClickEventHandler Delegate

A Delegate type used to add an event handler for the SheetBeforeRightClick event. The SheetBeforeRightClick event occurs when any worksheet is right-clicked, before the default right-click action.

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

Syntax

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

Parameters

  • Sh
    Type: System.Object

    A Worksheet object that represents the sheet.

  • Cancel
    Type: System.Boolean

    False when the event occurs. If the event procedure sets this argument to True, the default right-click action isn't performed when the procedure is finished.

See Also

Reference

Microsoft.Office.Interop.Excel Namespace