ArcGIS Pro 2.8 API Reference Guide
CreatePolyline(Envelope,SpatialReference) Method

ArcGIS.Core.Geometry Namespace > PolylineBuilderEx Class > CreatePolyline Method : CreatePolyline(Envelope,SpatialReference) Method
The envelope to create the polyline. Note that if the envelope has z-values, they will be interpolated for the upper right and lower left vertices.
(Optional) The SpatialReference. The default value is null. If spatialReference is null, then the spatial reference will be inherited from envelope.
Convenience method to create a new instance of the Polyline class.
Syntax
public static Polyline CreatePolyline( 
   Envelope envelope,
   SpatialReference spatialReference
)
Public Overloads Shared Function CreatePolyline( _
   ByVal envelope As Envelope, _
   Optional ByVal spatialReference As SpatialReference _
) As Polyline

Parameters

envelope
The envelope to create the polyline. Note that if the envelope has z-values, they will be interpolated for the upper right and lower left vertices.
spatialReference
(Optional) The SpatialReference. The default value is null. If spatialReference is null, then the spatial reference will be inherited from envelope.

Return Value

Exceptions
ExceptionDescription
envelope is null.
Remarks
HasZ, HasM and HasID attributes are inherited from the input envelope.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

PolylineBuilderEx Class
PolylineBuilderEx Members
Overload List