Replaces the points beginning at the specified index within the specified ring of the Polygon with a copy of the specified 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 SetPoints(
	int ringIndex,
	int firstPointIndex,
	IEnumerable<Point> points
)
Visual Basic (Declaration)
Public Sub SetPoints ( _
	ringIndex As Integer, _
	firstPointIndex As Integer, _
	points As IEnumerable(Of Point) _
)

Parameters

ringIndex
Type: System..::.Int32

The index of the ring to copy the new points into.
firstPointIndex
Type: System..::.Int32

The index of the first existing Point to replace.
points
Type: System.Collections.Generic..::.IEnumerable<(Of <(Point>)>)

A generic enumerable set of Point objects to copy in to the Polygon, beginning at firstPointIndex in the specified ring.

Remarks

Use this method to set multiple new points into the specified ring of the Polygon by replacing the same number of existing points (instead of using RemovePointsAt followed by InsertPoints); the inserted points will begin at the specified pointIndex and points in all other rings will be unchanged.

If working with single part polygons, the SetPoints(Int32, IEnumerable<(Of <(Point>)>)) overload is also available.

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