ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.Geometry Namespace / EnvelopeBuilderEx Class / EnvelopeBuilderEx Constructor / EnvelopeBuilderEx Constructor(Double,Double,Double,Double,SpatialReference)
Lower left corner X value of the envelope.
Upper right corner Y value of the envelope.
Lower left corner X value of the envelope.
Upper right corner Y value of the envelope.
(Optional) The SpatialReference. The default value is null.
Example

In This Topic
    EnvelopeBuilderEx Constructor(Double,Double,Double,Double,SpatialReference)
    In This Topic
    Creates a new instance of the EnvelopeBuilderEx class.
    Syntax
    Public Function New( _
       ByVal xMin As Double, _
       ByVal yMin As Double, _
       ByVal xMax As Double, _
       ByVal yMax As Double, _
       Optional ByVal spatialReference As SpatialReference _
    )

    Parameters

    xMin
    Lower left corner X value of the envelope.
    yMin
    Upper right corner Y value of the envelope.
    xMax
    Lower left corner X value of the envelope.
    yMax
    Upper right corner Y value of the envelope.
    spatialReference
    (Optional) The SpatialReference. The default value is null.
    Remarks
    The resulting envelope is normalized to ensure its XMin <= XMax and YMin <= YMax. If any of the input values are NaN, then the envelope is set to empty.
    Example
    Expand an Envelope
    // Use a builderEx convenience method or use a builderEx constructor.
    
    // convenience methods don't need to run on the MCT.
    Envelope envelope = EnvelopeBuilderEx.CreateEnvelope(100.0, 100.0, 500.0, 500.0);
    
    // shrink the envelope by 50%
    Envelope result = envelope.Expand(0.5, 0.5, true);
    
    
    // builderEx constructors don't need to run on the MCT.
    EnvelopeBuilderEx builderEx = new EnvelopeBuilderEx(100.0, 100.0, 500.0, 500.0);
    builderEx.Expand(0.5, 0.5, true);
    envelope = builderEx.ToGeometry() as Envelope;
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also