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 6.0]
Sub AddPoints(
    ByVal Count As Long, _
    newPoints As IPoint _
)
[Visual Basic .NET]
Public Sub AddPoints ( _
    ByVal Count As Integer, _
    ByRef newPoints As IPoint _
)
[C#]
public void AddPoints (
    int Count,
    ref IPoint newPoints
);
[Java]
public void addPoints (
    int Count,
    IPoint newPoints
)
throws
    IOException,
    AutomationException
[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

Example

IGeometryBridge_AddPoints_Example

 


Feedback Send feedback on this page