Version

ContextMenuOpening Event

Occurs before one of the built-in context menus is displayed.
Syntax
'Declaration
 
Public Event ContextMenuOpening As EventHandler(Of SpreadsheetContextMenuOpeningEventArgs)
Event Data

The event handler receives an argument of type SpreadsheetContextMenuOpeningEventArgs containing data related to this event. The following SpreadsheetContextMenuOpeningEventArgs properties provide information specific to this event.

PropertyDescription
Context Return an object that provides context for the menu being shown. This can be null.
ContextMenu Returns the menu that will be displayed.
MenuArea Returns the area of the spreadsheet for which the context menu will be displayed.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also