ESRI.ArcGIS.Mobile
CompareTo Method
See Also  Send Feedback
ESRI.ArcGIS.Mobile.Geometries Namespace > Coordinate Class : CompareTo Method

other
Coordinate to compare.
Compares the properties of this coordinate with another coordinate.

Syntax

Visual Basic (Declaration) 
Public Function CompareTo( _
   ByVal other As Coordinate _
) As Integer
C# 
public int CompareTo( 
   Coordinate other
)

Parameters

other
Coordinate to compare.

Return Value

-1if x or y of this coordinate are smaller than x or y of another coordinate.
0if the properties of both coordinates are equal.
+1if this coordinate properties are greater than another coordinate properties.

Exceptions

ExceptionDescription
ArgumentNullExceptionNull coordinate.

Remarks

Compares the location of the base point with that of the input point to determine a relative ordering of the two points. Points are compared in the order of X, Y. This funcation is useful for sorting a group of points.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also