ArcGIS Pro 2.9 API Reference Guide
CreatePolyline(IEnumerable<Coordinate2D>,SpatialReference) Method

ArcGIS.Core.Geometry Namespace > PolylineBuilderEx Class > CreatePolyline Method : CreatePolyline(IEnumerable<Coordinate2D>,SpatialReference) Method
Coordinates to create the polyline. Line segments are created from the coordinates.
(Optional) The SpatialReference. The default value is null.
Convenience method to create a new instance of the Polyline class.
Syntax
Public Overloads Shared Function CreatePolyline( _
   ByVal coordinates As IEnumerable(Of Coordinate2D), _
   Optional ByVal spatialReference As SpatialReference _
) As Polyline

Parameters

coordinates
Coordinates to create the polyline. Line segments are created from the coordinates.
spatialReference
(Optional) The SpatialReference. The default value is null.

Return Value

Exceptions
ExceptionDescription
coordinates is null.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

PolylineBuilderEx Class
PolylineBuilderEx Members
Overload List