ArcObjects Library Reference (EngineCore)  

IGraphicTracker.Add Method

Adds a new graphic from the given geometry and symbol. The returned Id should be used to manage the graphic.

[Visual Basic .NET]
Public Function Add ( _
    ByVal pGeometry As IGeometry, _
    ByVal pGraphicTrackerSymbol As IGraphicTrackerSymbol _
) As Integer
[C#]
public int Add (
    IGeometry pGeometry,
    IGraphicTrackerSymbol pGraphicTrackerSymbol
);
[C++]
HRESULT Add(
  IGeometry* pGeometry,
  IGraphicTrackerSymbol* pGraphicTrackerSymbol,
  long* id
);
[C++]

Parameters

pGeometry [in]

  pGeometry is a parameter of type IGeometry

pGraphicTrackerSymbol [in]

  pGraphicTrackerSymbol is a parameter of type IGraphicTrackerSymbol

id [out, retval]   id is a parameter of type long

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires 3D Analyst Extension.

Description

Adds the symbol and geomety to be tracked and returns an integer used to identify the graphic. Only geometries which support IPoint, IPolyline and IPolygon can be added. The Graphic Tracker holds an internal copy of each geometry and symbol supplied to it. The symbol must be appropriate for the geometry type; i.e. use fill symbols, not point symbols, to represent polygon geometries.The first graphic added will appear underneath subsequent graphics if they have overlapping display areas.

See Also

IGraphicTracker Interface