ArcObjects Library Reference (Geometry)  

IPointCollection.SetPoints Method

Replaces all existing vertices of this Path, Ring, Polyline, or Polygon with copies of the input points; or all existing points of this Multipoint, TriangleFan, or TriangleStrip with references to the input points (for C++ and VB users only).

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

Parameters

Count   Count 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

Sets the contents of the PointCollection equal to the first Count Points from the input array of Points.  After SetPoints is called, the PointCollection contains only count Points from the input Point array (regardless of what it may have contained previously).

[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