ControlDesigner.OnContextMenu(Int32, Int32) 方法

定义

显示上下文菜单,并提供在上下文菜单将要显示时执行附加处理的机会。Shows the context menu and provides an opportunity to perform additional processing when the context menu is about to be displayed.

protected:
 virtual void OnContextMenu(int x, int y);
protected virtual void OnContextMenu (int x, int y);
abstract member OnContextMenu : int * int -> unit
override this.OnContextMenu : int * int -> unit
Protected Overridable Sub OnContextMenu (x As Integer, y As Integer)

参数

x
Int32

上下文菜单显示处的 x 坐标。The x coordinate at which to display the context menu.

y
Int32

上下文菜单显示处的 y 坐标。The y coordinate at which to display the context menu.

适用于