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


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

IPointCollection.SetPointCollection Method

Replaces all vertices of this Path, Ring, Polyline, or Polygon with copies of the points in the input collection; or all points of this Multipoint, TriangleFan, or TriangleStrip with references to points from the input collection.

[Visual Basic .NET]
Public Sub SetPointCollection ( _
    ByVal newPoints As IPointCollection _
)
[C#]
public void SetPointCollection (
    IPointCollection newPoints
);
[C++]
HRESULT SetPointCollection(
  IPointCollection* newPoints
);
[C++]
Parameters
newPoints 

newPoints is a parameter of type IPointCollection*

Product Availability

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

Description

Sets the contents of the PointCollection equal to the contents of the input PointCollection.  After SetPointCollection is called, the PointCollection contains only the Points from the input PointCollection (regardless of what it may have contained previously).

See Also

IPointCollection Interface