ArcGIS Pro 2.7 API Reference Guide
CreatePolygon(Polygon,SpatialReference) Method

ArcGIS.Core.Geometry Namespace > PolygonBuilder Class > CreatePolygon Method : CreatePolygon(Polygon,SpatialReference) Method
The polygon to create the polygon.
(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 Polygon class.
Syntax
public static Polygon CreatePolygon( 
   Polygon polygon,
   SpatialReference spatialReference
)
Public Overloads Shared Function CreatePolygon( _
   ByVal polygon As Polygon, _
   Optional ByVal spatialReference As SpatialReference _
) As Polygon

Parameters

polygon
The polygon to create the polygon.
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

See Also

Reference

PolygonBuilder Class
PolygonBuilder Members
Overload List