ArcGIS Explorer Component Help |
Polyline..::.AddPoints Method (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 AddPoints( IEnumerable<Point> points ) |
Visual Basic (Declaration) |
---|
Public Sub AddPoints ( _ points As IEnumerable(Of Point) _ ) |
Parameters
- points
- Type: System.Collections.Generic..::.IEnumerable<(Of <(Point>)>)
A generic enumerable set of Point objects to copy in to the Polyline.
Remarks
The AddPoints method is can be used to build up the vertices in a new Polyline as an alternative to adding points one at a time using AddPoint.
This method adds the new points after any existing points in the Polyline. If the Polyline has multiple paths (PathCount is greater than 1), then the points are always added to the first path in the Polyline; if working with multipart polylines, see the AddPoint(Int32, Point) overload, in which a path index can be specified.
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.