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


IToolbarItem Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IT > IToolbarItem Interface
ArcGIS Developer Help

IToolbarItem Interface

Provides access to members that control ToolbarControl items. Note: the IToolbarItem interface has been superseded by IToolbarItem2. Please consider using the more recent version.

Product Availability

Available with ArcGIS Engine.

Description

A ToolbarItem represents a Command, Tool, ToolControl, Menu or Palette item on the ToolbarControl. These items generally appear as buttons however, a ToolControl will provide its own window, and will typically be a combo box.

Members

Name Description
Read-only property Command The command used by the item.
Read/write property CustomProperty A property to associate data with an item.
Read/write property Group Indicates if a group separator exists to the left of the item on the ToolbarControl.
Read/write property GroupSpacing The width of the group separator in pixels if present.
Read-only property Menu If the item is a menu, this property is a ToolbarMenu object.
Read/write property Style The style of the item. Displays a combination of text caption and bitmap.
Read-only property UID The UID of the command used by the item, which may be empty.

Classes that implement IToolbarItem

Classes Description
ToolbarItem ToolbarItems used by the ToolbarControl.

.NET Samples

Editing using a custom form ArcGIS Network Analyst extension Engine application Creating toolbar menus that work with the ToolbarControl