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


IGraphicTracker.Replace Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (EngineCore)  

IGraphicTracker.Replace Method

Creates a new graphic which will replace the element specified by the given ID.

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

Parameters id [in] id is a parameter of type long 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

Replaces both the symbol and geometry associated with a graphic.

See Also

IGraphicTracker Interface

.NET Samples

GraphicTracker with the map (Code Files: GTMapForm)