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

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

Parameters

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

PolygonBuilderEx Class
PolygonBuilderEx Members
Overload List