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

esriCmdBarType Constants (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > SystemUI > ESRI.ArcGIS.SystemUI > Constants > E > esriCmdBarType Constants
ArcGIS Developer Help

esriCmdBarType Constants

Commandbar types.

Constant Value Description
esriCmdBarTypeToolbar 0 Toolbar commandbar type.
esriCmdBarTypeMenu 1 Menu commandbar type.
esriCmdBarTypeShortcutMenu 2 Context menu commandbar type.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Use the esriCmdBarType enumeration with the ICommandBars::Create method or the IToolControl::OnDrop method.

esriCmdBarTypeToolbar                  Command bar type is a toolbar.       
esriCmdBarTypeMenu                     Command bar type is a menu.
esriCmdBarTypeShortcutMenu         Command bar type is a shortcut menu.

Note: Do not use the esriCmdBarTypeMenu enumeration with the ICommandBars::Create method to create a new menu. You should use the ICommandBar::CreateMenu method instead.

See Also

ICommandBars.Create Method | IToolControl.OnDrop Method