ArcGIS Pro 2.9 API Reference Guide
CreateEnvelope(Envelope,SpatialReference) Method

ArcGIS.Core.Geometry Namespace > EnvelopeBuilderEx Class > CreateEnvelope Method : CreateEnvelope(Envelope,SpatialReference) Method
The Envelope that will be copied.
(Optional) The SpatialReference. The default value is null. If spatialReference is null, then the spatial reference is inherited from envelope.
Convenience method to create a new instance of the Envelope class.
Syntax
public static Envelope CreateEnvelope( 
   Envelope envelope,
   SpatialReference spatialReference
)
Public Overloads Shared Function CreateEnvelope( _
   ByVal envelope As Envelope, _
   Optional ByVal spatialReference As SpatialReference _
) As Envelope

Parameters

envelope
The Envelope that will be copied.
spatialReference
(Optional) The SpatialReference. The default value is null. If spatialReference is null, then the spatial reference is inherited from envelope.

Return Value

Exceptions
ExceptionDescription
envelope is null.
Remarks
The resulting envelope inherits attributes, Z, M and ID-values, from the input envelope.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

EnvelopeBuilderEx Class
EnvelopeBuilderEx Members
Overload List