共用方式為


CommandBar Members

Include Protected Members
Include Inherited Members

Represents a command bar.

The CommandBar type exposes the following members.

Methods

  Name Description
Public method accDoDefaultAction Performs the default action. This method is deprecated. (Inherited from _IVsMsoOleAccDispObj.)
Public method accHitTest Gets the object at the specified coordinates. This method is deprecated. (Inherited from _IVsMsoOleAccDispObj.)
Public method accLocation Gets the location of the control. This method is deprecated. (Inherited from _IVsMsoOleAccDispObj.)
Public method accNavigate Navigates to another object. This method is deprecated. (Inherited from _IVsMsoOleAccDispObj.)
Public method accSelect Selects an object. This method is deprecated. (Inherited from _IVsMsoOleAccDispObj.)
Public method Delete Deletes this command bar from the command bars collection.
Public method FindControl Returns a command bar control that matches the specified criteria.
Public method Reset Resets a built-in command bar to its default configuration.
Public method ShowPopup Displays the command bar as a shortcut menu at the specified coordinates or at the current mouse coordinates.

Top

Properties

  Name Description
Public property accChild Gets the child. This property is deprecated. (Inherited from _IVsMsoOleAccDispObj.)
Public property accChildCount Gets the number of children. This property is deprecated. (Inherited from _IVsMsoOleAccDispObj.)
Public property accDefaultAction Gets the default action. This property is deprecated. (Inherited from _IVsMsoOleAccDispObj.)
Public property accDescription Gets the description. This property is deprecated. (Inherited from _IVsMsoOleAccDispObj.)
Public property accFocus Gets the focus. This property is deprecated. (Inherited from _IVsMsoOleAccDispObj.)
Public property accHelp Gets the help string. This property is deprecated. (Inherited from _IVsMsoOleAccDispObj.)
Public property accHelpTopic Gets the help topic. This property is deprecated. (Inherited from _IVsMsoOleAccDispObj.)
Public property accKeyboardShortcut Gets the keyboard shortcut. This property is deprecated. (Inherited from _IVsMsoOleAccDispObj.)
Public property accName Gets the name of the object. (Inherited from _IVsMsoOleAccDispObj.)
Public property accParent Gets the parent. This property is deprecated. (Inherited from _IVsMsoOleAccDispObj.)
Public property accRole Gets the role. This property is deprecated. (Inherited from _IVsMsoOleAccDispObj.)
Public property accSelection Gets the selection. This property is deprecated. (Inherited from _IVsMsoOleAccDispObj.)
Public property accState Gets the state. This property is deprecated. (Inherited from _IVsMsoOleAccDispObj.)
Public property accValue Gets the value. This property is deprecated. (Inherited from _IVsMsoOleAccDispObj.)
Public property AdaptiveMenu Determines whether menu commands appear and disappear based on usage. Always returns false.
Public property Application Gets the DTE object. (Inherited from _IVsMsoOleAccDispObj.)
Public property BuiltIn Determines whether this command bar is a custom command bar or a built-in command bar.
Public property Context Gets or sets the location where the command bar is saved. Always returns the empty string.
Public property Controls The set of controls on this command bar.
Public property Creator Gets the ID of the application. (Inherited from _IVsMsoOleAccDispObj.)
Public property Enabled Determines whether the command bar is enabled.
Public property Height Gets the height of the command bar.
Public property Id Gets the ID of the command bar.
Public property Index Gets the index of this command bar in the set of command bars.
Public property InstanceId Gets the instance ID of the command bar.
Public property Left Gets the left coordinates. This property is deprecated.
Public property Name Gets or sets the non-localized name of the command bar.
Public property NameLocal Gets or sets the localized name of the command bar.
Public property Parent Gets the parent of this command bar.
Public property Position Gets or sets the position of the command bar.
Public property Protection Gets or sets the protection level of this command bar.
Public property RowIndex Gets or sets the docking order of a command bar with respect to other command bars in the same docking area.
Public property Top Gets the top. This property is deprecated.
Public property Type Gets or sets the type of command bar.
Public property Visible Determines whether the command bar is visible.
Public property Width Gets the width of the command bar.

Top

See Also

Reference

CommandBar Interface

Microsoft.VisualStudio.CommandBars Namespace