Adds an enumerable set of Point objects to the Polyline by copying the specified points after any existing points. If called on a multipart Polyline, adds the points to the first path after any existing points.

Namespace:  ESRI.ArcGISExplorer.Geometry

Assembly:  ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)

Syntax

C#
public void AddPoints(
	IEnumerable<Point> points
)
Visual Basic (Declaration)
Public Sub AddPoints ( _
	points As IEnumerable(Of Point) _
)

Parameters

points
Type: System.Collections.Generic..::.IEnumerable<(Of <(Point>)>)

A generic enumerable set of Point objects to copy in to the Polyline.

Remarks

The AddPoints method is can be used to build up the vertices in a new Polyline as an alternative to adding points one at a time using AddPoint.

This method adds the new points after any existing points in the Polyline. If the Polyline has multiple paths (PathCount is greater than 1), then the points are always added to the first path in the Polyline; if working with multipart polylines, see the AddPoint(Int32, Point) overload, in which a path index can be specified.

Note that the CoordinateSystem property of any new points added, inserted or set into existing an existing Polygon or Polyline will be discarded, and the coordinates (X and Y properties) of the point assumed to be in the same CoordinateSystem as the Polygon or Polyline to which they are added.

See Also