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 | ||
---|---|---|
Create | Creates a new blank toolbar or shortcut menu. | |
Find | Searches for the item specified by identifier. | |
HideAllToolbars | Hides all visible bars. | |
LargeIcons | Indicates if large icons should be shown. | |
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.