Прочетете на английски Редактиране

Споделяне чрез


MenuCommandService.ShowContextMenu(CommandID, Int32, Int32) Method

Definition

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

C#
public virtual void ShowContextMenu(System.ComponentModel.Design.CommandID menuID, int x, int y);

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

Продукт Версии
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 5, 6, 7, 8, 9, 10

See also