Adds an enumerable set of points to the Polygon by copying the specified points after any existing points in the specified ring of the Polygon.

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(
	int ringIndex,
	IEnumerable<Point> points
)
Visual Basic (Declaration)
Public Sub AddPoints ( _
	ringIndex As Integer, _
	points As IEnumerable(Of Point) _
)

Parameters

ringIndex
Type: System..::.Int32

The index of the ring to add points to.
points
Type: System.Collections.Generic..::.IEnumerable<(Of <(Point>)>)

A generic enumerable set of Point objects to copy in to the indicated ringIndex of the Polygon.

Remarks

Use this overload of the AddPoints method to add multiple points to a particular ring in a Polygon. The specified ringIndex must already exist in the Polygon; use the [O:ESRI.ArcGISExplorer.Geometry.Polygon.AddRing] method to add a new ring to the Polygon.

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.

Exceptions

ExceptionCondition
System..::.ArgumentOutOfRangeExceptionThe specified ringIndex must already exist in the Polygon.

See Also