Click or drag to resize

GeometryIsEqual Method

Compares two geometries for exact equality. The types of geometry, order of points, all values, and the SpatialReference must all be the equal.

Namespace:  Esri.ArcGISRuntime.Geometry
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.9.0
Syntax
public abstract bool IsEqual(
	Geometry other
)

Parameters

other
Type: Esri.ArcGISRuntime.GeometryGeometry
A geometry to test for equality.

Return Value

Type: Boolean
true if this geometry is exactly equal to other; otherwise false.
Remarks

Various implementations of IsEqual(Geometry) method (i.e. IsEqual(Geometry), IsEqual(Geometry), IsEqual(Segment), IsEqual(Geometry), IsEqual(Geometry), IsEqual(Geometry), IsEqual(Segment)) provide the strictest comparison of two geometries to ensure that they are identical. For a slightly more relaxed comparison (one that does not take coordinate order into account), use Equals(Geometry, Geometry). The following table provides a comparison of these options:

geometryA.IsEqual(geometryB)GeometryEngine.Equals(geometryA,geometryB)
TypeType
ShapeShape
OrientationOrientation
Order of Coordinates--
See Also