ArcGIS Pro 2.6 API Reference Guide
EnvelopeBuilder Constructor(MapPoint,MapPoint)
Example 

ArcGIS.Core.Geometry Namespace > EnvelopeBuilder Class > EnvelopeBuilder Constructor : EnvelopeBuilder Constructor(MapPoint,MapPoint)
Lower left corner of the envelope.
Upper right corner of the envelope.
Initializes a new instance of the EnvelopeBuilder class. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public EnvelopeBuilder( 
   MapPoint minPoint,
   MapPoint maxPoint
)
Public Function New( _
   ByVal minPoint As MapPoint, _
   ByVal maxPoint As MapPoint _
)

Parameters

minPoint
Lower left corner of the envelope.
maxPoint
Upper right corner of the envelope.
Exceptions
ExceptionDescription
Indicates the geometry is null or empty.
Incompatible spatial references. The spatial references of the MapPoints do not match.
This method or property must be called within the lambda passed to QueuedTask.Run.
minPoint or maxPoint is null.
Remarks
The spatial references of the two points must be the same or null.The envelope is normalized to ensure XMin <= XMax, YMin <= yMax, ZMin <= ZMax and MMin <= MMax. If any of the xy-coordinate values are NaN, then the envelope is set to empty.
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();
  }
});
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

EnvelopeBuilder Class
EnvelopeBuilder Members
Overload List