ArcGIS Pro 3.8 API Reference Guide
ArcGIS.Core.Geometry Namespace / Envelope Class / IsEqual Method / IsEqual(Envelope,Double) Method
An envelope to test for equality while considering the tolerance.
The tolerance to be used when determining if the envelopes are equal.

In This Topic
    IsEqual(Envelope,Double) Method
    In This Topic
    Compares two envelopes for equality while considering the given tolerance.
    Syntax
    public bool IsEqual( 
       Envelope envelope,
       double tolerance
    )
    Public Overloads Function IsEqual( _
       ByVal envelope As Envelope, _
       ByVal tolerance As Double _
    ) As Boolean

    Parameters

    envelope
    An envelope to test for equality while considering the tolerance.
    tolerance
    The tolerance to be used when determining if the envelopes are equal.

    Return Value

    True if the two envelopes are equal, false otherwise.
    Exceptions
    ExceptionDescription
    The input tolerance is < 0 or is NaN.
    Remarks
    The tolerance value is used to compare x, y, and other attributes. For example, if Abs(x1 - x2) <= tolerance, then x1 and x2 are considered to be equal. All other properties of the envelopes have to be equal exactly (spatial reference, HasZ, etc.). For topological equality, use relational operators instead of this function.
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.8 or higher.
    See Also