DocEvents_BeforeRightClickEventHandler DocEvents_BeforeRightClickEventHandler DocEvents_BeforeRightClickEventHandler Delegate

Definition

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

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

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

Cancel

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

Inheritance
DocEvents_BeforeRightClickEventHandlerDocEvents_BeforeRightClickEventHandlerDocEvents_BeforeRightClickEventHandler
Attributes

Applies to