Inserts a copy of the specified points beginning at the specified point index in the specified path of the Polyline.

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

Parameters

pathIndex
Type: System..::.Int32

The index of the path to copy the new points into.
pointIndex
Type: System..::.Int32

The first point index within the specified pathIndex to copy the new points into.
points
Type: System.Collections.Generic..::.IEnumerable<(Of <(Point>)>)

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

Remarks

Use this method to insert new points into an existing path of a multipart Polyline; the inserted points will begin at the specified pointIndex and all following existing points in the path 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 in the specified path. The specified pathIndex must already exist in the Polyline.

If working with single part polylines, the InsertPoints(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.

Exceptions

ExceptionCondition
System..::.ArgumentOutOfRangeExceptionThe specified pointIndex must not be greater than the number of existing points in the specified path, and the specified pathIndex must already exist in the Polyline.

See Also