This document is archived and information here might be outdated. Recommended version. |
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*
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.