Inserts a copy of the specified set of points, beginning at the specified point index in the Polygon. If the Polygon has more than one ring, the points are inserted into the first ring.

Namespace:  ESRI.ArcGISExplorer.Geometry

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

Syntax

C#
public void InsertPoints(
	int pointIndex,
	IEnumerable<Point> points
)
Visual Basic (Declaration)
Public Sub InsertPoints ( _
	pointIndex As Integer, _
	points As IEnumerable(Of Point) _
)

Parameters

pointIndex
Type: System..::.Int32

The beginning index at which to insert a copy of points.
points
Type: System.Collections.Generic..::.IEnumerable<(Of <(Point>)>)

A generic enumerable set of Point objects to copy into the Polygon.

Remarks

Use this method to insert multiple point objects into a Polygon with existing points; the inserted points will begin at the the specified pointIndex and all following points in the Polygon will increase their index position by the number of points inserted. If the pointIndex is equal to the number of points, this method behaves like the AddPoints method, copying the points after all existing points.

For a multipart Polygon, only the first ring is changed; if the RingCount is greater than 1, then the points are inserted into the first ring in the Polygon; if working with multipart polygons, see the InsertPoints(Int32, Int32, IEnumerable<(Of <(Point>)>)) overload in which a ring index can be specified to insert the new points into.

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