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

In This Topic
    IsEqual(Polyline) Method
    In This Topic
    Compares two Polyline 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( 
       Polyline polyline
    )
    Public Overloads Function IsEqual( _
       ByVal polyline As Polyline _
    ) As Boolean

    Parameters

    polyline
    A Polyline 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, this is a little more costly to compute.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also