Condividi tramite


CommandBarControl Members

Include Protected Members
Include Inherited Members

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

The CommandBarControl type exposes the following members.

Methods

  Name Description
Public method accDoDefaultAction(Object) Performs the default action. This method is deprecated. (Inherited from _IVsMsoOleAccDispObj.)
Public method accDoDefaultAction(Object) Performs the default action. This method is deprecated.
Public method accHitTest(Int32, Int32) Gets the object at the specified coordinates. This method is deprecated. (Inherited from _IVsMsoOleAccDispObj.)
Public method accHitTest(Int32, Int32) Gets the object at the specified coordinates. This method is deprecated.
Public method accLocation(Int32%, Int32%, Int32%, Int32%, Object) Gets the location of the control. This method is deprecated. (Inherited from _IVsMsoOleAccDispObj.)
Public method accLocation(Int32%, Int32%, Int32%, Int32%, Object) Gets the location of the control. This method is deprecated.
Public method accNavigate(Int32, Object) Navigates to another object. This method is deprecated. (Inherited from _IVsMsoOleAccDispObj.)
Public method accNavigate(Int32, Object) Navigates to another object. This method is deprecated.
Public method accSelect(Int32, Object) Selects an object. This method is deprecated. (Inherited from _IVsMsoOleAccDispObj.)
Public method accSelect(Int32, Object) Selects an object. This method is deprecated.
Public method Copy Copies this control to the specified position on the specified command bar.
Public method Delete Removes this control from the collection.
Public method Execute Performs the action of this control.
Public method Move Moves this control to the specified command bar at the specified position.
Public method Reserved1 Reserved.
Public method Reserved2 Reserved.
Public method Reserved3 Reserved.
Public method Reserved4 Reserved.
Public method Reserved5 Reserved.
Public method Reserved6 Reserved.
Public method Reserved7 Reserved.
Public method Reset Resets the control.
Public method SetFocus Sets the focus on the control.

Top

Properties

  Name Description
Public property accChild[Object] Gets the child. This property is deprecated. (Inherited from _IVsMsoOleAccDispObj.)
Public property accChild[Object] Gets the child. This property is deprecated.
Public property accChildCount Gets the number of children. This property is deprecated. (Inherited from _IVsMsoOleAccDispObj.)
Public property accChildCount Gets the number of children. This property is deprecated.
Public property accDefaultAction[Object] Gets the default action. This property is deprecated. (Inherited from _IVsMsoOleAccDispObj.)
Public property accDefaultAction[Object] Gets the default action. This property is deprecated.
Public property accDescription[Object] Gets the description. This property is deprecated. (Inherited from _IVsMsoOleAccDispObj.)
Public property accDescription[Object] Gets the description. This property is deprecated.
Public property accFocus Gets the focus. This property is deprecated. (Inherited from _IVsMsoOleAccDispObj.)
Public property accFocus Gets the focus. This property is deprecated.
Public property accHelp[Object] Gets the help string. This property is deprecated. (Inherited from _IVsMsoOleAccDispObj.)
Public property accHelp[Object] Gets the help string. This property is deprecated.
Public property accHelpTopic[String%, Object] Gets the help topic. This property is deprecated. (Inherited from _IVsMsoOleAccDispObj.)
Public property accHelpTopic[String%, Object] Gets the help topic. This property is deprecated.
Public property accKeyboardShortcut[Object] Gets the keyboard shortcut. This property is deprecated. (Inherited from _IVsMsoOleAccDispObj.)
Public property accKeyboardShortcut[Object] Gets the keyboard shortcut.
Public property accName[Object] Gets the name of the object. (Inherited from _IVsMsoOleAccDispObj.)
Public property accName[Object] Gets the name of the object.
Public property accParent Gets the parent. This property is deprecated. (Inherited from _IVsMsoOleAccDispObj.)
Public property accParent Gets the parent. This property is deprecated.
Public property accRole[Object] Gets the role. This property is deprecated. (Inherited from _IVsMsoOleAccDispObj.)
Public property accRole[Object] Gets the role. This property is deprecated.
Public property accSelection Gets the selection. This property is deprecated. (Inherited from _IVsMsoOleAccDispObj.)
Public property accSelection Gets the selection. This property is deprecated.
Public property accState[Object] Gets the state. This property is deprecated. (Inherited from _IVsMsoOleAccDispObj.)
Public property accState[Object] Gets the state. This property is deprecated.
Public property accValue[Object] Gets the value. This property is deprecated. (Inherited from _IVsMsoOleAccDispObj.)
Public property accValue[Object] Gets the value. This property is deprecated.
Public property Application Gets the DTE object. (Inherited from _IVsMsoOleAccDispObj.)
Public property Application Gets the DTE object.
Public property BeginGroup Determines whether this control is the first in its group.
Public property BuiltIn Determines whether this control is a custom control or a built-in control.
Public property Caption Gets or sets the caption of the control.
Public property Control Gets the control itself.
Public property Creator Gets the ID of the application. (Inherited from _IVsMsoOleAccDispObj.)
Public property Creator Gets the ID of the application.
Public property DescriptionText Always returns the empty string.
Public property Enabled Determines whether the control is enabled.
Public property Height Gets or sets the height of the control.
Public property HelpContextId Gets the help context ID. Always returns 0.
Public property HelpFile Always returns the empty string.
Public property Id Gets the ID of the control.
Public property Index Gets the index of this control in the set of controls on the command bar.
Public property InstanceId Gets the instance ID of this control.
Public property IsPriorityDropped Always returns false.
Public property Left Gets the left coordinates. This property is deprecated.
Public property OLEUsage Gets or sets the OLE usage. This property is deprecated.
Public property OnAction Gets or sets the OnAction string.
Public property Parameter Gets or sets the parameter that is used with the command.
Public property Parent Gets the parent command bar.
Public property Priority Gets the priority. Always returns 1.
Public property Tag Gets or sets the tag
Public property TooltipText Gets or sets the tooltip text.
Public property Top Gets the top. This property is deprecated.
Public property Type Gets the type of the control.
Public property Visible Determines whether this control is visible.
Public property Width Gets or sets the width of the control.

Top

See Also

Reference

CommandBarControl Interface

Microsoft.VisualStudio.CommandBars Namespace