ArcGIS Pro 2.6 API Reference Guide
CreatePolyline(IEnumerable<IEnumerable<Segment>>,SpatialReference) Method

ArcGIS.Core.Geometry Namespace > PolylineBuilder Class > CreatePolyline Method : CreatePolyline(IEnumerable<IEnumerable<Segment>>,SpatialReference) Method
The polyline parts
(Optional) The SpatialReference. The default value is null. If spatialReference is null, then the spatial reference will be inherited from parts.
Convenience method to create a new instance of the Polyline class.
Syntax
Public Overloads Shared Function CreatePolyline( _
   ByVal parts As IEnumerable(Of IEnumerable(Of Segment)), _
   Optional ByVal spatialReference As SpatialReference _
) As Polyline

Parameters

parts
The polyline parts
spatialReference
(Optional) The SpatialReference. The default value is null. If spatialReference is null, then the spatial reference will be inherited from parts.

Return Value

Exceptions
ExceptionDescription
Incompatible spatial references.
parts is null.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

PolylineBuilder Class
PolylineBuilder Members
Overload List