Compartir a través de


CommandBars Interface

Represents the set of command bars.

Namespace:  Microsoft.VisualStudio.CommandBars
Assembly:  Microsoft.VisualStudio.CommandBars (in Microsoft.VisualStudio.CommandBars.dll)

Syntax

'Declaration
<GuidAttribute("83D31B2E-9990-4275-AE39-77D1FB5BBCD9")> _
Public Interface CommandBars _
    Inherits _CommandBars, _CommandBarsEvents_Event
[GuidAttribute("83D31B2E-9990-4275-AE39-77D1FB5BBCD9")]
public interface CommandBars : _CommandBars, 
    _CommandBarsEvents_Event
[GuidAttribute(L"83D31B2E-9990-4275-AE39-77D1FB5BBCD9")]
public interface class CommandBars : _CommandBars, 
    _CommandBarsEvents_Event
[<GuidAttribute("83D31B2E-9990-4275-AE39-77D1FB5BBCD9")>]
type CommandBars =  
    interface 
        interface _CommandBars 
        interface _CommandBarsEvents_Event 
    end
public interface CommandBars extends _CommandBars, _CommandBarsEvents_Event

The CommandBars type exposes the following members.

Properties

  Name Description
Public property ActionControl Gets the CommandBarControl whose OnAction event initiated the procedure that is currently running. (Inherited from _CommandBars.)
Public property ActiveMenuBar Gets the menu bar that is currently active. (Inherited from _CommandBars.)
Public property AdaptiveMenus Determines whether the set of controls is determined by usage. Always returns false. (Inherited from _CommandBars.)
Public property Application Gets the DTE object. (Inherited from _CommandBars.)
Public property Count Gets the number of CommandBars objects this contains. (Inherited from _CommandBars.)
Public property Creator Gets the ID of the application. (Inherited from _CommandBars.)
Public property DisableAskAQuestionDropdown Determines whether the AskAQuestion dropdown is disabled. Always returns true. (Inherited from _CommandBars.)
Public property DisableCustomize Determines whether user customizations have been disabled. (Inherited from _CommandBars.)
Public property DisplayFonts Determines whether a font name in the Font dropdown is displayed with the font of that name. Always returns false. (Inherited from _CommandBars.)
Public property DisplayKeysInTooltips Determines whether key bindings are displayed in tooltips. Always returns true. (Inherited from _CommandBars.)
Public property DisplayTooltips Determines whether tooltips are displayed for command bar controls. Always returns true. (Inherited from _CommandBars.)
Public property IdsString This property is deprecated. (Inherited from _CommandBars.)
Public property Item Gets the command bar that matches the given name or index. (Inherited from _CommandBars.)
Public property LargeButtons Determines whether large buttons are displayed on command bars. Always returns false. (Inherited from _CommandBars.)
Public property MenuAnimationStyle Gets or sets the kind of animation style that is used when menus are displayed. Always returns msoMenuAnimationNone. (Inherited from _CommandBars.)
Public property Parent Gets the parent of this command bar, which is the DTE object. (Inherited from _CommandBars.)
Public property TmcGetName This method is deprecated. (Inherited from _CommandBars.)

Top

Methods

  Name Description
Public method Add Adds a command bar. (Inherited from _CommandBars.)
Public method add_OnUpdate Adds the OnUpdate event handler. (Inherited from _CommandBarsEvents_Event.)
Public method AddEx Adds a command bar, including its protection level. (Inherited from _CommandBars.)
Public method FindControl Finds the command bar control that has the specified characteristics. (Inherited from _CommandBars.)
Public method FindControls Finds all the command bar controls that match the given criteria. (Inherited from _CommandBars.)
Public method GetEnumerator Gets the enumerator for this collection. (Inherited from _CommandBars.)
Public method ReleaseFocus Releases the focus, if it is on a menu or toolbar. (Inherited from _CommandBars.)
Public method remove_OnUpdate Removes the event handler. (Inherited from _CommandBarsEvents_Event.)

Top

Events

  Name Description
Public event OnUpdate Raised when a CommandBars object is updated. This event is deprecated. (Inherited from _CommandBarsEvents_Event.)

Top

See Also

Reference

Microsoft.VisualStudio.CommandBars Namespace