MenuCommandService.ShowContextMenu(CommandID, Int32, Int32) Method

Definition

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

public:
 virtual void ShowContextMenu(System::ComponentModel::Design::CommandID ^ menuID, int x, int y);
public virtual void ShowContextMenu (System.ComponentModel.Design.CommandID menuID, int x, int y);
abstract member ShowContextMenu : System.ComponentModel.Design.CommandID * int * int -> unit
override this.ShowContextMenu : System.ComponentModel.Design.CommandID * int * int -> unit
Public Overridable Sub ShowContextMenu (menuID As CommandID, x As Integer, y As Integer)

Parameters

menuID
CommandID

The shortcut menu to display.

x
Int32

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

y
Int32

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

Implements

Remarks

The default implementation does nothing.

Applies to

See also