WorkbookEvents_SheetBeforeRightClickEventHandler WorkbookEvents_SheetBeforeRightClickEventHandler WorkbookEvents_SheetBeforeRightClickEventHandler Delegate

Definition

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.

public delegate void WorkbookEvents_SheetBeforeRightClickEventHandler(System::Object ^ Sh, Range ^ Target, [Runtime::InteropServices::Out] bool % Cancel);
[System.Runtime.InteropServices.ComVisible(false)]
public delegate void WorkbookEvents_SheetBeforeRightClickEventHandler(object Sh, Range Target, out bool Cancel);
Public Delegate Sub WorkbookEvents_SheetBeforeRightClickEventHandler(Sh As Object, Target As Range, ByRef Cancel As Boolean)
Parameters
Sh

A Worksheet object that represents the sheet.

Target

The cell nearest to the mouse pointer when the right-click occurred.

Cancel

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.

Inheritance
WorkbookEvents_SheetBeforeRightClickEventHandlerWorkbookEvents_SheetBeforeRightClickEventHandlerWorkbookEvents_SheetBeforeRightClickEventHandler
Attributes

Applies to