ArcGIS Pro 3.2 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.
    public bool IsEqual( 
       Polyline polyline
    Public Overloads Function IsEqual( _
       ByVal polyline As Polyline _
    ) As Boolean


    A Polyline to test for equality.

    Return Value

    Value to indicate if the two geometries are equal.
    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.

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also