ArcGIS Pro 2.8 API Reference Guide
CreatePolygon(PolygonBuilderEx,SpatialReference) Method

ArcGIS.Core.Geometry Namespace > PolygonBuilderEx Class > CreatePolygon Method : CreatePolygon(PolygonBuilderEx,SpatialReference) Method
The builder to create the polygon.
(Optional) The SpatialReference. The default value is null. If the input spatial reference is null, then the spatial reference from the input builder is used.
Convenience method to create a new instance of the Polygon class.
Syntax
Public Overloads Shared Function CreatePolygon( _
   ByVal polygonBuilderEx As PolygonBuilderEx, _
   Optional ByVal spatialReference As SpatialReference _
) As Polygon

Parameters

polygonBuilderEx
The builder to create the polygon.
spatialReference
(Optional) The SpatialReference. The default value is null. If the input spatial reference is null, then the spatial reference from the input builder is used.
Exceptions
ExceptionDescription
polygonBuilderEx is null.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

PolygonBuilderEx Class
PolygonBuilderEx Members
Overload List