This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > EngineCore > ESRI.ArcGIS.EngineCore > Interfaces > IG > IGraphicTracker Interface > IGraphicTracker.SetLabel Method (ArcObjects .NET 10.5 SDK) |
Sets a label for the given graphic.
[Visual Basic .NET] Public Sub SetLabel ( _ ByVal id As Integer, _ ByVal newLabel As String _ )
[C#] public void SetLabel ( int id, string newLabel );
[C++]
HRESULT SetLabel(
long id,
BSTR newLabel
);
[C++]
Parameters id [in] id is a parameter of type long newLabel [in] newLabel is a parameter of type BSTR
Sets a text label for the graphic. If you don't use the SetTextSymbol() method first then a default text symbol will be used. Call SetLabel with an empty string to remove the label.