ArcGIS Pro 2.9 API Reference Guide
FromEsriShape Method (EnvelopeBuilderEx)

ArcGIS.Core.Geometry Namespace > EnvelopeBuilderEx Class : FromEsriShape Method
Esri shape buffer representation of Envelope. Note that the buffer will actually represent a Polygon because there is not an Esri shape buffer representation of an envelope.
(Optional)The spatial reference of the Envelope.
Creates a new instance of a Envelope class from an Esri shape buffer.
Syntax
public new static Envelope FromEsriShape( 
   byte[] esriShapeBuffer,
   SpatialReference spatialReference
)
Public Shared Shadows Function FromEsriShape( _
   ByVal esriShapeBuffer() As Byte, _
   Optional ByVal spatialReference As SpatialReference _
) As Envelope

Parameters

esriShapeBuffer
Esri shape buffer representation of Envelope. Note that the buffer will actually represent a Polygon because there is not an Esri shape buffer representation of an envelope.
spatialReference
(Optional)The spatial reference of the Envelope.

Return Value

Exceptions
ExceptionDescription
The esriShapeBuffer is empty or null.
Esri shape buffer is invalid or does not represent an polygon.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

EnvelopeBuilderEx Class
EnvelopeBuilderEx Members