ArcGIS Pro 2.6 API Reference Guide
CreatePolyline(Polygon,SpatialReference) Method

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

Parameters

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

Return Value

Exceptions
ExceptionDescription
polygon is null.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

PolylineBuilder Class
PolylineBuilder Members
Overload List