ArcObjects Library Reference  (Controls)    

IToolbarItem.Command Property

The command used by the item.

[Visual Basic 6.0]
Property Command As ICommand
[Visual Basic .NET]
Public ReadOnly Property Command As ICommand
[C#]
public ICommand Command {get;}
[Java]
public ICommand getCommand()
throws
    IOException,
    AutomationException
[C++]
HRESULT get_Command(
  ICommand** ppCommand
);
[C++]

Parameters

ppCommand [out, retval]

  ppCommand is a parameter of type ICommand

Product Availability

Available with ArcGIS Engine.

Description

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.

[C#]
ICommand command = axToolbarControl1.GetItem(0).Command;
[Visual Basic 6.0]
Dim pCommand as ICommand
Set pCommand = ToolbarControl1.GetItem(0).Command
[Visual Basic .NET]
Dim pCommand As ICommand
pCommand = AxToolbarControl1.GetItem(0).Command

See Also

IToolbarItem Interface

 


Feedback Send feedback on this page