ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Geometry Namespace / Polygon Class / IsEqual Method / IsEqual(Polygon) Method
A Polygon to test for equality.

In This Topic
    IsEqual(Polygon) Method
    In This Topic
    Compares two Polygon for equality. This will check that the SpatialReference, attribute awareness (HasZ, HasM, HasID), and the content of Multipart.Parts match. The order of parts must match too.
    Syntax
    public bool IsEqual( 
       Polygon polygon
    )
    Public Overloads Function IsEqual( _
       ByVal polygon As Polygon _
    ) As Boolean

    Parameters

    polygon
    A Polygon to test for equality.

    Return Value

    Value to indicate if the two geometries are equal.
    Remarks
    To compare two geometries regardless of their point order you can use the Equals(Geometry,Geometry) method. GeometryEngine.Equals is a little more costly to compute.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also