ArcGIS Enterprise SDK
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
);

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