Freigeben über


CommandBarEvents Interface

Definition

Causes a Click event to occur when a control on the command bar is clicked. Use this object for functionality, and refer to CommandBarEventsClass for this object's documentation.

public interface class CommandBarEvents : EnvDTE::_CommandBarControlEvents, EnvDTE::_dispCommandBarControlEvents_Event
public interface class CommandBarEvents : EnvDTE::_dispCommandBarControlEvents_Event
public interface class CommandBarEvents : EnvDTE::_CommandBarControlEvents, EnvDTE::_dispCommandBarControlEvents_Event
__interface CommandBarEvents : EnvDTE::_CommandBarControlEvents, EnvDTE::_dispCommandBarControlEvents_Event
[System.Runtime.InteropServices.CoClass(typeof(EnvDTE.CommandBarEventsClass))]
[System.Runtime.InteropServices.Guid("9E66FE98-A1C6-421D-8C0C-6DA4E652E770")]
public interface CommandBarEvents : EnvDTE._CommandBarControlEvents, EnvDTE._dispCommandBarControlEvents_Event
[System.Runtime.InteropServices.CoClass(typeof(EnvDTE.CommandBarEventsClass))]
[System.Runtime.InteropServices.Guid("9E66FE98-A1C6-421D-8C0C-6DA4E652E770")]
[System.Runtime.InteropServices.ComVisible(false)]
public interface CommandBarEvents : EnvDTE._dispCommandBarControlEvents_Event
[<System.Runtime.InteropServices.CoClass(typeof(EnvDTE.CommandBarEventsClass))>]
[<System.Runtime.InteropServices.Guid("9E66FE98-A1C6-421D-8C0C-6DA4E652E770")>]
type CommandBarEvents = interface
    interface _CommandBarControlEvents
    interface _dispCommandBarControlEvents_Event
[<System.Runtime.InteropServices.CoClass(typeof(EnvDTE.CommandBarEventsClass))>]
[<System.Runtime.InteropServices.Guid("9E66FE98-A1C6-421D-8C0C-6DA4E652E770")>]
[<System.Runtime.InteropServices.ComVisible(false)>]
type CommandBarEvents = interface
    interface _dispCommandBarControlEvents_Event
Public Interface CommandBarEvents
Implements _CommandBarControlEvents, _dispCommandBarControlEvents_Event
Public Interface CommandBarEvents
Implements _dispCommandBarControlEvents_Event
Derived
Attributes
Implements

Examples

<System.ContextStaticAttribute()> Public WithEvents CommandBarEvents As EnvDTE.CommandBarEvents  

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

Remarks

The CommandBarEvents object is returned by the CommandBarEvents[] property of the Events object. The object that is returned has one event in its interface, the Click event. In Visual Basic, you can handle this event by using the WithEvents object declaration.

Methods

add_Click(_dispCommandBarControlEvents_ClickEventHandler) (Inherited from _dispCommandBarControlEvents_Event)
remove_Click(_dispCommandBarControlEvents_ClickEventHandler) (Inherited from _dispCommandBarControlEvents_Event)

Events

Click

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

Microsoft Internal Use Only.

(Inherited from _dispCommandBarControlEvents_Event)

Applies to