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


CommandItem Class (ArcObjects .NET 10.7 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Framework > ESRI.ArcGIS.Framework > Classes > C > CommandItem Class
ArcGIS Developer Help

CommandItemClass Class

Command Item.

Product Availability

Available with ArcGIS Desktop.

Description

A CommandItem class represents any item on a command bar. For example, buttons, tools, and menu items that appear on command bars are all command items. Use the Find method from either ICommandBars or ICommandBar to obtain a reference to a particular CommandItem.

Supported Platforms

Windows

Extended Error Information

Use the ISupportErrorInfo method InterfaceSupportsErrorInfo to determine if the object supports extended error information. If the object supports extended error info, VC++ developers should use the OLE/COM IErrorInfo interface to access the ErrorInfo object. Visual Basic developers should use the global error object Err to retrieve this extended error information.

Interfaces

Interfaces Description
ICommandItem Provides access to members that define a command item.
IPersist (esriSystem)
IPersistStream (esriSystem)
ISupportErrorInfo (esriSystem)