InputPanel for WinForms帮助文档
ContextMenuShowing 事件






Fires when the context menu should appear.
语法
'声明
 
<C1DescriptionAttribute("当应当显示上下文菜单时触发。")>
<C1CategoryAttribute("行为")>
Public Event ContextMenuShowing As ContextMenuShowingEventHandler
'用法
 
Dim instance As InputComponent
Dim handler As ContextMenuShowingEventHandler
 
AddHandler instance.ContextMenuShowing, handler
[C1Description("当应当显示上下文菜单时触发。")]
[C1Category("行为")]
public event ContextMenuShowingEventHandler ContextMenuShowing
public event ContextMenuShowing: ContextMenuShowingEventHandler; 
In JScript, you can handle the events defined by another class, but you cannot define your own.
[C1Description("当应当显示上下文菜单时触发。")]
[C1Category("行为")]
public: __event ContextMenuShowingEventHandler* ContextMenuShowing
[C1Description("当应当显示上下文菜单时触发。")]
[C1Category("行为")]
public:
event ContextMenuShowingEventHandler^ ContextMenuShowing
事件数据

The event handler receives an argument of type ContextMenuShowingEventArgs containing data related to this event. The following ContextMenuShowingEventArgs properties provide information specific to this event.

属性说明
HandledGets or sets whether the context menu appeared successfully.  
LocationGets the screen point where the context menu should appear.  
XGets the x-coordinate of the screen point where the context menu should appear.  
YGets the y-coordinate of the screen point where the context menu should appear.  
需求

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

请参见

引用

InputComponent 类
InputComponent 成员

Send Feedback