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


IGraphicTracker.Add 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.Add Method
ArcGIS Developer Help

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
);
[C++]
Parameters
pGeometry [in]

pGeometry is a parameter of type IGeometry* pGraphicTrackerSymbol [in]
pGraphicTrackerSymbol is a parameter of type IGraphicTrackerSymbol*

Product Availability

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

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