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


IPointCollection.ReplacePointCollection Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IP > IPointCollection Interface > IPointCollection.ReplacePointCollection Method
ArcGIS Developer Help

IPointCollection.ReplacePointCollection Method

Replaces vertices/points within a PointCollection.

[Visual Basic .NET]
Public Sub ReplacePointCollection ( _
    ByVal Index As Integer, _
    ByVal goingAway As Integer, _
    ByVal newPoints As IPointCollection _
)
[C#]
public void ReplacePointCollection (
    int Index,
    int goingAway,
    IPointCollection newPoints
);
[C++]
HRESULT ReplacePointCollection(
  long Index,
  long goingAway,
  IPointCollection* newPoints
);
[C++]
Parameters
Index 

Index is a parameter of type long goingAway
goingAway is a parameter of type long newPoints
newPoints is a parameter of type IPointCollection*

Product Availability

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

Description

Replaces a specified number (goingAway) of Points in the PointCollection begining at a given index with a PointCollection of Points (inserted at the given index).

See Also

IPointCollection Interface