ArcGIS Pro 3.8 API Reference Guide
ArcGIS.Core.Geometry Namespace / PolylineBuilderEx Class / CreatePolyline Method / CreatePolyline(Multipoint,SpatialReference) Method
The multipoint to create the polyline. Line segments are created from the points in the multipoint.
(Optional) The SpatialReference. The default value is null. If spatialReference is null, then the spatial reference will be inherited from multipoint.
Example

In This Topic
    CreatePolyline(Multipoint,SpatialReference) Method
    In This Topic
    Convenience method to create a new instance of the Polyline class.
    Syntax
    Public Overloads Shared Function CreatePolyline( _
       ByVal multipoint As Multipoint, _
       Optional ByVal spatialReference As SpatialReference _
    ) As Polyline

    Parameters

    multipoint
    The multipoint to create the polyline. Line segments are created from the points in the multipoint.
    spatialReference
    (Optional) The SpatialReference. The default value is null. If spatialReference is null, then the spatial reference will be inherited from multipoint.

    Return Value

    Exceptions
    ExceptionDescription
    multipoint is null.
    Remarks
    HasZ, HasM and HasID attributes are inherited from the input multipoint.
    Example
    Construct a Polyline - from a Cubic Bezier
    {
      polyline = PolylineBuilderEx.CreatePolyline(bezierSegment);
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also