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


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

esriCommandStyles Constants

Command display styles.

Constant Value Description
esriCommandStyleTextOnly 0 Display text only.
esriCommandStyleIconOnly 1 Display icon only.
esriCommandStyleIconAndText 2 Display icon and text.
esriCommandStyleMenuBar 4 Display bar as main menu.

Product Availability

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

Remarks

Use the esriCommandStyles enumeration with the ICommandItem::Style property.

esriCommandStyleTextOnly         Displays the command with text only.
esriCommandStyleIconOnly         Displays the command with icon only.
esriCommandStyleIconAndText   Displays the command with icon and text.
esriCommandStyleMenuBar         Displays the commandbar as main menu.

Commands on menus should never have a style of esriCommandStyleIconOnly.

See Also

ICommandItem.Style Property