ArcGIS Explorer Component Help |
Polyline..::.InsertPoints Method (Int32, IEnumerable<(Of <(Point>)>)) |
Polyline Class See Also |
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 first 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 Polyline.
Remarks
Use this method to insert multiple point objects into a Polyline with existing points; the inserted points will begin at the the specified pointIndex and all following points in the Polyline 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 Polyline, only the first path is changed; if the PathCount is greater than 1, then the points are inserted into the first path in the Polyline; if working with multipart polylines, see the InsertPoints(Int32, Int32, IEnumerable<(Of <(Point>)>)) overload in which a path 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.