MenuCommandService.ShowContextMenu(CommandID, Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.