ArcGIS Pro 2.8 API Reference Guide
CreatePolygon(IEnumerable<Coordinate2D>,SpatialReference) Method

ArcGIS.Core.Geometry Namespace > PolygonBuilderEx Class > CreatePolygon Method : CreatePolygon(IEnumerable<Coordinate2D>,SpatialReference) Method
Coordinates to create the polygon. Line segments are created from the coordinates.
(Optional) The SpatialReference. The default value is null.
Convenience method to create a new instance of the Polygon class.
Syntax
Public Overloads Shared Function CreatePolygon( _
   ByVal coordinates As IEnumerable(Of Coordinate2D), _
   Optional ByVal spatialReference As SpatialReference _
) As Polygon

Parameters

coordinates
Coordinates to create the polygon. Line segments are created from the coordinates.
spatialReference
(Optional) The SpatialReference. The default value is null.

Return Value

Exceptions
ExceptionDescription
coordinates is null.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

PolygonBuilderEx Class
PolygonBuilderEx Members
Overload List