This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IP > IPointCollection Interface > IPointCollection.SetPoints Method (ArcObjects .NET 10.4 SDK) |
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
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).
When using C# you must use the IGeometryBridge interface to call this method.
When using VBNET you must use the IGeometryBridge interface to call this method.