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


IDocument.CommandBars Property (ArcObjects .NET 10.6 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 | Find Command and Execute | Use Custom Tool on Windows Form | Get Toolbar by Name | Statements - Use a Tool in a Windows Form | Create Context Menu | List ArcMap Visible Toolbars | Get Command on Toolbar by Names | Set Tool Active in ToolBar

.NET Related Topics

How to show a context menu in ArcGIS for Desktop applications