This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IT > IToolbarItem Interface > IToolbarItem.Command Property (ArcObjects .NET 10.5 SDK) |
The command used by the item.
[Visual Basic .NET] Public ReadOnly Property Command As ICommand
[C#] public ICommand Command {get;}
[C++]
HRESULT get_Command(
ICommand** ppCommand
);
[C++]
Parameters ppCommand [out, retval]
ppCommand is a parameter of type ICommand
Returns the ICommand object used by the Command, Tool or ToolControl item. If the item is using a Menu, an IMultiItem object or Palette Nothing is returned.
ICommand command=axToolbarControl1.GetItem(0).Command;
Dim pCommand As ICommand
pCommand=AxToolbarControl1.GetItem(0).Command