編輯

共用方式為


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
Object

A Worksheet object that represents the sheet.

Target
Range

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

Cancel
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.

Attributes

Applies to