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


IDocument.CommandBars Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Framework)  

IDocument.CommandBars Property

The commandbars collection in this document.

[Visual Basic .NET]
Public ReadOnly Property CommandBars As ICommandBars
[C#]
public ICommandBars CommandBars {get;}

Product Availability

Available with ArcGIS Desktop.

Description

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.

 

See Also

IDocument Interface | ICommandBars Interface

.NET Snippets

Get Command by Name | List ArcMap Visible Toolbars | Use Custom Tool on Windows Form | Create Context Menu | Find Command and Execute | Set Tool Active in ToolBar | Statements - Use a Tool in a Windows Form | Get Command on Toolbar by Names | Get Toolbar by Name

.NET Related Topics

How to show a context menu in ArcGIS for Desktop applications