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


IPointCollection.AddPoints Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Geometry)  

IPointCollection.AddPoints Method

Adds copies of the input points as vertices to this Path, Ring, Polyline, or Polygon; or references to the input points to this Multipoint, TriangleFan, or TriangleStrip. This method is intended for internal use only.

[Visual Basic .NET]
Public Sub AddPoints ( _
    ByVal Count As Integer, _
    ByRef newPoints As IPoint _
)
[C#]
public void AddPoints (
    int Count,
    ref IPoint newPoints
);
[C++]
HRESULT AddPoints(
  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

Adds the first specified number (Count) of Points to the PointCollection from an array of Points (with at least Count points).  The Points are all added to the end of the PointCollection in the same sequence as they are ordered in the array.

[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

.NET Related Topics

Server