This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > SystemUI > ESRI.ArcGIS.SystemUI > Interfaces > IC > ICommand Interface > ICommand.Caption Property (ArcObjects .NET 10.5 SDK) |
The caption of this command.
[Visual Basic .NET] Public ReadOnly Property Caption As String
[C#] public string Caption {get;}
[C++]
HRESULT get_Caption(
BSTR* Caption
);
[C++]
Parameters Caption [out, retval] Caption is a parameter of type BSTR
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.