Compartir a través de


CommandBarEventsClass.Click Event

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Occurs when the OnAction property for the corresponding CommandBarControl object is set or returned.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

'Declaration
Public Overridable Event Click As _dispCommandBarControlEvents_ClickEventHandler
public virtual event _dispCommandBarControlEvents_ClickEventHandler Click
public:
virtual   event _dispCommandBarControlEvents_ClickEventHandler^ Click {
    void add (_dispCommandBarControlEvents_ClickEventHandler^ value);
    void remove (_dispCommandBarControlEvents_ClickEventHandler^ value);
}
abstract Click : IEvent<_dispCommandBarControlEvents_ClickEventHandler,
    EventArgs>
override Click : IEvent<_dispCommandBarControlEvents_ClickEventHandler,
    EventArgs>
JScript does not support events.

Implements

_dispCommandBarControlEvents_Event.Click

Remarks

Use CommandBarEvents.Click.

Examples

Public Sub CommandBarEvents_Click(ByVal CommandBarControl As Object, ByRef handled As Boolean, ByRef CancelDefault As Boolean) Handles CommandBarEvents.Click
   MsgBox("test")
End Sub

.NET Framework Security

See Also

Reference

CommandBarEventsClass Class

EnvDTE Namespace