This document is archived and information here might be outdated.  Recommended version.


IGraphicTracker.SetLabel Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > EngineCore > ESRI.ArcGIS.EngineCore > Interfaces > IG > IGraphicTracker Interface > IGraphicTracker.SetLabel Method
ArcGIS Developer Help

IGraphicTracker.SetLabel Method

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

Product Availability

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

Description

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.

See Also

IGraphicTracker Interface