We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

CommandBarControl Interface

Represents a control (button, combo box, dropdown, or other element) on a command bar.

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

[GuidAttribute("43FD5911-7BAC-4BDC-AB6C-2DE65B5C0233")]
public interface CommandBarControl : _IVsMsoOleAccDispObj

The CommandBarControl 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.
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 propertyApplicationGets the DTE object.
Public propertyBeginGroupDetermines whether this control is the first in its group.
Public propertyBuiltInDetermines whether this control is a custom control or a built-in control.
Public propertyCaptionGets or sets the caption of the control.
Public propertyControlGets the control itself.
Public propertyCreatorGets the ID of the application.
Public propertyDescriptionTextAlways returns the empty string.
Public propertyEnabledDetermines whether the control is enabled.
Public propertyHeightGets or sets the height of the control.
Public propertyHelpContextIdGets the help context ID. Always returns 0.
Public propertyHelpFileAlways returns the empty string.
Public propertyIdGets the ID of the control.
Public propertyIndexGets the index of this control in the set of controls on the command bar.
Public propertyInstanceIdGets the instance ID of this control.
Public propertyIsPriorityDroppedAlways returns false.
Public propertyLeftGets the left coordinates. This property is deprecated.
Public propertyOLEUsageGets or sets the OLE usage. This property is deprecated.
Public propertyOnActionGets or sets the OnAction string.
Public propertyParameterGets or sets the parameter that is used with the command.
Public propertyParentGets the parent command bar.
Public propertyPriorityGets the priority. Always returns 1.
Public propertyTagGets or sets the tag
Public propertyTooltipTextGets or sets the tooltip text.
Public propertyTopGets the top. This property is deprecated.
Public propertyTypeGets the type of the control.
Public propertyVisibleDetermines whether this control is visible.
Public propertyWidthGets or sets the width of the control.
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 methodCopyCopies this control to the specified position on the specified command bar.
Public methodDeleteRemoves this control from the collection.
Public methodExecutePerforms the action of this control.
Public methodMoveMoves this control to the specified command bar at the specified position.
Public methodReserved1Reserved.
Public methodReserved2Reserved.
Public methodReserved3Reserved.
Public methodReserved4Reserved.
Public methodReserved5Reserved.
Public methodReserved6Reserved.
Public methodReserved7Reserved.
Public methodResetResets the control.
Public methodSetFocusSets the focus on the control.
Top
Show: