ArcGIS Explorer Component Help |
Polyline..::.AddPoints Method (Int32, IEnumerable<(Of <(Point>)>)) |
Polyline Class See Also |
Adds an enumerable set of points to the Polyline by copying the specified points after any existing points in the specified
path of the Polyline.
Namespace:
ESRI.ArcGISExplorer.GeometryAssembly: ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)
Syntax
C# |
---|
public void AddPoints( int pathIndex, IEnumerable<Point> points ) |
Visual Basic (Declaration) |
---|
Public Sub AddPoints ( _ pathIndex As Integer, _ points As IEnumerable(Of Point) _ ) |
Parameters
- pathIndex
- Type: System..::.Int32
The index of the path to add points to.
- points
- Type: System.Collections.Generic..::.IEnumerable<(Of <(Point>)>)
A generic enumerable set of Point objects to copy in to the indicated pathIndex of the Polyline.
Remarks
Use this overload of the AddPoints method to add multiple points to a particular path in a Polyline. The specified pathIndex must already exist in the Polyline; use the [O:ESRI.ArcGISExplorer.Geometry.Polyline.AddPath] method to add a new path to the Polyline.
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
Exception | Condition |
---|---|
System..::.ArgumentOutOfRangeException | The specified pathIndex must already exist in the Polyline. |