C1.Win.C1InputPanel 命名空间 > InputComponent 类 : ContextMenuShowing 事件 |
'声明
<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.
属性 | 说明 |
---|---|
Handled | Gets or sets whether the context menu appeared successfully. |
Location | Gets the screen point where the context menu should appear. |
X | Gets the x-coordinate of the screen point where the context menu should appear. |
Y | Gets 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