ArcObjects Library Reference (SystemUI)  

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

.NET Snippets

Add Editing Commands to ToolbarControl |

.NET Samples

Add a custom bookmarks MultiItem to the ToolbarControl (Code Files: MultiItemBookmarks) | Add map surrounds using the SymbologyControl (Code Files: AddMapSurrounds) | Allow run time customization of the ToolbarControl (Code Files: Customization) | Buffer snap agent (Code Files: EditingForm) | Building a MapViewer application using the ArcGIS Engine controls (Code Files: MapViewer) | Change layer rendering using the SymbologyControl (Code Files: LayerRendering) | Change the appearance of the ToolbarControl (Code Files: Appearance) | Committing ink sketches using the controls ink commands (Code Files: InkSketchCommit) | Configure a command for a specific locale (Code Files: CulturalResources) | Controls commands environment (Code Files: CommandsEnvironment) | Creating a zoom factor extension that works with a ToolbarControl (Code Files: ToolbarControlExtension) | Creating toolbar menus that work with the ToolbarControl (Code Files: ToolbarMenu) | Custom reshape polyline edit task (Code Files: EditingForm) | Custom vertex editing commands (Code Files: EditingForm) | Cut polygons without selection edit task (Code Files: EditingForm) | Displaying a TOCControl context menu (Code Files: TOCContextMenuForm) | Edit event listener (Code Files: EditingForm) | Editing using a custom form (Code Files: EditorForm MainForm) | Enable layer drag and drop in the TOCControl (Code Files: LayerDragDrop) | Feature editing with the control commands (Code Files: FeatureEditing) | Implementing a property page for an ArcGIS Engine application (Code Files: TocContextMenuClass) | Managing snap agents (Code Files: EditingForm) | Network Analyst Engine application (Code Files: frmMain) | Save a layer file in a MapControl application (Code Files: ContextMenuClass frmMain) | Schematics Engine application (Code Files: MainForm) | Share a command pool between ToolbarControls (Code Files: ShareCommandPool) | Synchronized MapControl and PageLayoutControl application (Code Files: frmMain) | ToolbarControl MDI application (Code Files: ParentForm) | Update a frame's background, border, and shadow using the SymbologyControl (Code Files: FrameProperties) | Using HookActions in custom commands (Code Files: HookActions) |

.NET Related Topics

Building a map viewing application using the ArcGIS Engine controls | Enabling menu tracking on the ToolbarControl | How to create a toolbar palette that works with the ToolbarControl | How to provide context-sensitive help for a custom command | How to use an application as the ToolbarControl buddy | How to use ArcGIS samples | Using the flicker commands | Using the swipe and transparency commands | Using the ToolbarControl |