This documentation is archived and is not being maintained.

ChartEvents_Event.BeforeRightClick Event 

Occurs when an embedded chart is right-clicked, before the default right-click action.

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

WithEvents chartEvents_Event1 As ChartEvents_Event
Function chartEvents_Event1_BeforeRightClick(Cancel As Boolean) As Void
	Handles chartEvents_Event1.BeforeRightClick
End Function

event ChartEvents_BeforeRightClickEventHandler BeforeRightClick;
 void add_BeforeRightClick(ChartEvents_BeforeRightClickEventHandler handler);
 void remove_BeforeRightClick(ChartEvents_BeforeRightClickEventHandler handler);
In JScript, you can handle the events defined by a class, but you cannot define your own.

Like other worksheet events, this event doesn't occur if you right-click while the pointer is on a shape or a command bar (a toolbar or menu bar).

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms