MenuCommandService::ShowContextMenu Method (CommandID^, Int32, Int32)

 

Shows the shortcut menu with the given command ID at the given location.

Namespace:   System.ComponentModel.Design
Assembly:  System.Design (in System.Design.dll)

public:
virtual void ShowContextMenu(
	CommandID^ menuID,
	int x,
	int y
)

Parameters

menuID
Type: System.ComponentModel.Design::CommandID^

The shortcut menu to display.

x
Type: System::Int32

The x-coordinate of the shortcut menu's location.

y
Type: System::Int32

The y-coordinate of the shortcut menu's location.

The default implementation does nothing.

.NET Framework
Available since 2.0
Return to top
Show: