Share via


CommandBars Object Members

A collection of CommandBar objects that represent the command bars in the container application.

Methods

  Name Description
Aa433403.methods(en-us,office.12).gif Add Creates a new command bar and adds it to the collection of command bars.
Aa433403.methods(en-us,office.12).gif ExecuteMso Executes the control identified by the idMso parameter.
Aa433403.methods(en-us,office.12).gif FindControl Gets a CommandBarControl object that fits a specified criteria.
Aa433403.methods(en-us,office.12).gif FindControls Gets the CommandBarControls collection that fits the specified criteria.
Aa433403.methods(en-us,office.12).gif GetEnabledMso Returns True if the control identified by the idMso parameter is enabled.
Aa433403.methods(en-us,office.12).gif GetImageMso Returns an IPictureDisp object of the control image identified by the idMso parameter scaled to the dimensions specified by width and height.
Aa433403.methods(en-us,office.12).gif GetLabelMso Returns the label of the control identified by the idMso parameter as a String.
Aa433403.methods(en-us,office.12).gif GetPressedMso Returns a value indicating whether the toggleButton control identified by the idMso parameter is pressed.
Aa433403.methods(en-us,office.12).gif GetScreentipMso Returns the screentip of the control identified by the idMso parameter as a String.
Aa433403.methods(en-us,office.12).gif GetSupertipMso Returns the supertip of the control identified by the idMso parameter as a String.
Aa433403.methods(en-us,office.12).gif GetVisibleMso Returns True if the control identified by the idMso parameter is visible.
Aa433403.methods(en-us,office.12).gif ReleaseFocus Releases the user interface focus from all command bars.

Properties

  Name Description
Aa433403.properties(en-us,office.12).gif ActionControl Gets the CommandBarControl object whose OnAction property is set to the running procedure. Read-only.
Aa433403.properties(en-us,office.12).gif ActiveMenuBar Gets a CommandBar object that represents the active menu bar in the container application. Read-only.
Aa433403.properties(en-us,office.12).gif AdaptiveMenus This property checks or unchecks the check box control for the option to show menus in Microsoft Office as full or personalized. Read/write.
Aa433403.properties(en-us,office.12).gif Application Gets an Application object that represents the container application for the CommandBars object (you can use this property with an Automation object to return that object's container application). Read-only.
Aa433403.properties(en-us,office.12).gif Count Gets a count of the number of command bars in the host application. Read-only.
Aa433403.properties(en-us,office.12).gif Creator Gets a 32-bit integer that indicates the application in which the CommandBars object was created. Read-only.
Aa433403.properties(en-us,office.12).gif DisableAskAQuestionDropdown Is True if the Answer Wizard dropdown menu is enabled. Read/write.
Aa433403.properties(en-us,office.12).gif DisableCustomize Is True if toolbar customization is disabled. Read/write.
Aa433403.properties(en-us,office.12).gif DisplayFonts Is True if the font names in the Font box are displayed in their actual fonts. Read/write.
Aa433403.properties(en-us,office.12).gif DisplayKeysInTooltips Is True if shortcut keys are displayed in the ToolTips for each command bar control. Read/write.
Aa433403.properties(en-us,office.12).gif DisplayTooltips Is True if ScreenTips are displayed whenever the user positions the pointer over command bar controls. Read/write.
Aa433403.properties(en-us,office.12).gif Item Gets a CommandBar object from the CommandBars collection. Read-only.
Aa433403.properties(en-us,office.12).gif LargeButtons Is True if the toolbar buttons displayed are larger than normal size. Read/write.
Aa433403.properties(en-us,office.12).gif MenuAnimationStyle Gets or sets a MsoMenuAnimation that represents the way a command bar is animated. Read/write.
Aa433403.properties(en-us,office.12).gif Parent Gets the Parent object for the CommandBars object. Read-only.

Events

  Name Description
Aa433403.events(en-us,office.12).gif OnUpdate Occurs when any change is made to a command bar.