ArcGIS Pro 2.7 API Reference Guide
EnvelopeBuilderEx Constructor(MapPoint,MapPoint)
Example 

ArcGIS.Core.Geometry Namespace > EnvelopeBuilderEx Class > EnvelopeBuilderEx Constructor : EnvelopeBuilderEx Constructor(MapPoint,MapPoint)
Lower left corner of the envelope. Cannot be null.
Upper right corner of the envelope. Cannot be null.
Initializes a new instance of the EnvelopeBuilderEx class.
Syntax
public EnvelopeBuilderEx( 
   MapPoint minPoint,
   MapPoint maxPoint
)
Public Function New( _
   ByVal minPoint As MapPoint, _
   ByVal maxPoint As MapPoint _
)

Parameters

minPoint
Lower left corner of the envelope. Cannot be null.
maxPoint
Upper right corner of the envelope. Cannot be null.
Exceptions
ExceptionDescription
minPoint or maxPoint is null.
Incompatible spatial references. The spatial references of the MapPoints do not match.
Remarks
For example, if The envelope is normalized to ensure XMin <= XMax, YMin <= yMax. If any of the xy-coordinate values are NaN, then the envelope is set to empty. The spatial references of the two points must be the same or null. The attributes of the input points are ignored.
Example
// Use a builder convenience method or use a builder constructor.

MapPoint minPt = MapPointBuilder.CreateMapPoint(1.0, 1.0);
MapPoint maxPt = MapPointBuilder.CreateMapPoint(2.0, 2.0);

// Builder convenience methods don't need to run on the MCT.
Envelope envelope = EnvelopeBuilder.CreateEnvelope(minPt, maxPt);

// Builder constructors need to run on the MCT.
ArcGIS.Desktop.Framework.Threading.Tasks.QueuedTask.Run(() =>
{
  using (EnvelopeBuilder builder = new EnvelopeBuilder(minPt, maxPt))
  {
    // do something with the builder

    envelope = builder.ToGeometry();
  }
});

// builderEx constructors don't need to run on the MCT.
EnvelopeBuilderEx builderEx = new EnvelopeBuilderEx(minPt, maxPt);
envelope = builderEx.ToGeometry() as Envelope;
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

EnvelopeBuilderEx Class
EnvelopeBuilderEx Members
Overload List