Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CommandBar Interface
Collapse the table of content
Expand the table of content

CommandBar Interface

Represents a command bar.

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

[GuidAttribute("D27B4DFE-351C-4AD4-9211-F49BEC19106D")]
public interface CommandBar : _IVsMsoOleAccDispObj

The CommandBar type exposes the following members.

  NameDescription
Public propertyaccChildGets the child. This property is deprecated.
Public propertyaccChildCountGets the number of children. This property is deprecated.
Public propertyaccDefaultActionGets the default action. This property is deprecated.
Public propertyaccDescriptionGets the description. This property is deprecated.
Public propertyaccFocusGets the focus. This property is deprecated.
Public propertyaccHelpGets the help string. This property is deprecated.
Public propertyaccHelpTopicGets the help topic. This property is deprecated.
Public propertyaccKeyboardShortcutGets the keyboard shortcut. This property is deprecated.
Public propertyaccNameGets the name of the object.
Public propertyaccParentGets the parent. This property is deprecated.
Public propertyaccRoleGets the role. This property is deprecated.
Public propertyaccSelectionGets the selection. This property is deprecated.
Public propertyaccStateGets the state. This property is deprecated.
Public propertyaccValueGets the value. This property is deprecated.
Public propertyAdaptiveMenuDetermines whether menu commands appear and disappear based on usage. Always returns false.
Public propertyApplicationGets the DTE object.
Public propertyBuiltInDetermines whether this command bar is a custom command bar or a built-in command bar.
Public propertyContextGets or sets the location where the command bar is saved. Always returns the empty string.
Public propertyControlsThe set of controls on this command bar.
Public propertyCreatorGets the ID of the application.
Public propertyEnabledDetermines whether the command bar is enabled.
Public propertyHeightGets the height of the command bar.
Public propertyIdGets the ID of the command bar.
Public propertyIndexGets the index of this command bar in the set of command bars.
Public propertyInstanceIdGets the instance ID of the command bar.
Public propertyLeftGets the left coordinates. This property is deprecated.
Public propertyNameGets or sets the non-localized name of the command bar.
Public propertyNameLocalGets or sets the localized name of the command bar.
Public propertyParentGets the parent of this command bar.
Public propertyPositionGets or sets the position of the command bar.
Public propertyProtectionGets or sets the protection level of this command bar.
Public propertyRowIndexGets or sets the docking order of a command bar with respect to other command bars in the same docking area.
Public propertyTopGets the top. This property is deprecated.
Public propertyTypeGets or sets the type of command bar.
Public propertyVisibleDetermines whether the command bar is visible.
Public propertyWidthGets the width of the command bar.
Top

  NameDescription
Public methodaccDoDefaultActionPerforms the default action. This method is deprecated.
Public methodaccHitTestGets the object at the specified coordinates. This method is deprecated.
Public methodaccLocationGets the location of the control. This method is deprecated.
Public methodaccNavigateNavigates to another object. This method is deprecated.
Public methodaccSelectSelects an object. This method is deprecated.
Public methodDeleteDeletes this command bar from the command bars collection.
Public methodFindControlReturns a command bar control that matches the specified criteria.
Public methodResetResets a built-in command bar to its default configuration.
Public methodShowPopupDisplays the command bar as a shortcut menu at the specified coordinates or at the current mouse coordinates.
Top
Show:
© 2015 Microsoft