共用方式為


_CommandBars Interface

Represents the set of CommandBar objects.

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

Syntax

'宣告
<GuidAttribute("83D31B2E-9990-4275-AE39-77D1FB5BBCD9")> _
Public Interface _CommandBars _
    Inherits _IVsMsoDispObj, IEnumerable
[GuidAttribute("83D31B2E-9990-4275-AE39-77D1FB5BBCD9")]
public interface _CommandBars : _IVsMsoDispObj, 
    IEnumerable

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

Top

Methods

  Name Description
Public method Add Adds a command bar.
Public method AddEx Adds a command bar, including its protection level.
Public method FindControl Finds the command bar control that has the specified characteristics.
Public method FindControls Finds all the command bar controls that match the given criteria.
Public method GetEnumerator() Returns an enumerator that iterates through a collection. (Inherited from IEnumerable.)
Public method GetEnumerator() Gets the enumerator for this collection.
Public method ReleaseFocus Releases the focus, if it is on a menu or toolbar.

Top

See Also

Reference

Microsoft.VisualStudio.CommandBars Namespace