ArcObjects Library Reference  (SystemUI)    

ICommand.Caption Property

The caption of this command.

[Visual Basic 6.0]
Property Caption As String
[Visual Basic .NET]
Public ReadOnly Property Caption As String
[C#]
public string Caption {get;}
[Java]
public String getCaption()
throws
    IOException,
    AutomationException
[C++]
HRESULT get_Caption(
  BSTR* Caption
);
[C++]

Parameters

Caption [out, retval]

  Caption is a parameter of type BSTR

Product Availability

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

Remarks

The Caption property of a command is the string that appears when the command is placed on a command bar.

When implementing ICommand to create a custom command, use the Caption property to set the caption of the command.

[Visual Basic 6.0]
Private Property Get ICommand_Caption() As String
   ICommand_Caption = "MyTool"
End Property 

See Also

ICommand Interface

Example

ICommand Example

 


Feedback Send feedback on this page