ArcObjects Library Reference (SystemUI)  

IItemDef Interface

Provides access to members that define an item on a commandbar.

Product Availability

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

When To Use

The IItemDef interface is used to define a command item that's on a toolbar or menu. This interface specifies the identifier (CLSID or ProgID) of the command and its subtype if there is one. It also determines whether this item begins a group on the toolbar or menu. Use the IItemDef interface with the GetItemInfo method on either the IToolbarDef or the IMenuDef interface to define the items on the toolbar or menu.

Members

Description
Write-only property Group Indicates if the defined item should start a group on the menu or toolbar.
Write-only property ID The CLSID or PROGID of the item being defined.
Write-only property SubType The subtype of the item being defined.

See Also

IToolBarDef.GetItemInfo Method

.NET Samples

Applying user interface customizations at startup (Code Files: AcmeMenu) | Configure a command for a specific locale (Code Files: CultureMenu) | Creating toolbar menus that work with the ToolbarControl (Code Files: NavigationMenu ToolbarSubMenu) | Dynamic display layer (Code Files: DynamicLayerToolbar) | RSS weather layer (Code Files: WeatherLayerToolbar) | Schematics Engine application (Code Files: CreateMenu CreateSubMenu) | StreetMap routing (Code Files: RoutingToolbar) |

.NET Related Topics

Building a context menu with dynamic command items |