This document is archived and information here might be outdated.  Recommended version.


ICommandBars Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Framework > ESRI.ArcGIS.Framework > Interfaces > IC > ICommandBars Interface
ArcGIS Developer Help

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

Name 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.

Classes that implement ICommandBars

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

.NET Samples

Applying user interface customizations at startup Simple logging dockable window with a custom context menu Custom subtyped command and tool