ArcObjects Library Reference (Framework)  

ICommandBars Interface

Provides access to members that work on the collection of commandbars.

Product Availability

Available with ArcGIS Desktop.

When To Use

CommandBars is a collection of all the toolbars available to a document. The ICommandBars interface allows you to set properties for all the commandbars and to create, find, or hide commandbars. Use IDocument::CommandBars to get a reference to the commandbars collection.

Members

Description
Method Create Creates a new blank toolbar or shortcut menu.
Method Find Searches for the item specified by identifier.
Method HideAllToolbars Hides all visible bars.
Read/write property LargeIcons Indicates if large icons should be shown.
Read/write property ShowToolTips Indicates if tooltips should be shown.

CoClasses that implement ICommandBars

CoClasses and Classes Description
CommandBars CommandBars collection object.

Remarks

Note, all programmatic customizations are temporary. If you execute VBA code to create a new commandbar, these changes are temporary. If you programmatically customize ArcMap, these changes will only appear while the current document is open in the current ArcMap session. Programmatic changes are never saved in the document or templates. Once you close that document or shutdown ArcMap, the changes are removed. If you are customizing ArcCatalog, these changes will only appear during the current ArcCatalog session.

See Also

IDocument.CommandBars Property