![]() |
This document is archived and information here might be outdated. Recommended version. |
Command Item.
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.
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 | Description |
|---|---|
| ICommandItem | Provides access to members that define a command item. |
| IPersist (esriSystem) | |
| IPersistStream (esriSystem) | |
| ISupportErrorInfo (esriSystem) |