Adds an enumerable set of Point objects to the Polygon by copying the specified points after any existing points. If called on a multipart Polygon, adds the points to the first ring 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 Polygon.

Remarks

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

This method adds the new points after any existing points in the Polygon. If the Polygon has multiple rings (RingCount is greater than 1), then the points are always added to the first ring in the Polygon; if working with multipart polygons, see the AddPoint(Int32, Point) overload, in which a ring 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