ArcObjects Library Reference (EngineCore)  

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. Requires 3D Analyst Extension.

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