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


IPointCollection.ReplacePoints 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.ReplacePoints Method
ArcGIS Developer Help

IPointCollection.ReplacePoints Method

Replaces vertices/points within a PointCollection.

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

Index is a parameter of type long comingIn
comingIn is a parameter of type long goingAway
goingAway is a parameter of type long newPoints [in]
newPoints is a parameter of type IPoint**

Product Availability

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

Description

Removes a specified number (goingAway) of Points from a PointCollection starting at a given index and replaces them (starting at the same index) with a specified number (comingIn) of Points from an array of Points.

 

If you are using attempting to use this method from a .NET enabled language, such as VB.NET, you may need to use the ReplacePoints method provided by the IGeometryBridge interface exposed on the GeometryEnvironment object.

[C#]

When using C# you must use the IGeometryBridge interface to call this method.

[Visual Basic .NET]

When using VBNET you must use the IGeometryBridge interface to call this method.

See Also

IPointCollection Interface