Replaces the points beginning at the specified index within the specified path of the Polyline 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 pathIndex,
	int firstPointIndex,
	IEnumerable<Point> points
)
Visual Basic (Declaration)
Public Sub SetPoints ( _
	pathIndex As Integer, _
	firstPointIndex As Integer, _
	points As IEnumerable(Of Point) _
)

Parameters

pathIndex
Type: System..::.Int32

The index of the path 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 Polyline, beginning at firstPointIndex in the specified path.

Remarks

Use this method to set multiple new points into the specified path of the Polyline 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 paths will be unchanged.

If working with single part polylines, 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