ESRI.ArcGIS.Mobile
GetNearestCoordinate(Point,Coordinate,Int32,Int32,Double) Method
See Also  Send Feedback
ESRI.ArcGIS.Mobile.Geometries Namespace > Geometry Class > GetNearestCoordinate Method : GetNearestCoordinate(Point,Coordinate,Int32,Int32,Double) Method

inputPoint
The input point to compare to.
nearestCoordinate
Returns the previous vertex index on the part where the nearest coordinate was found.
partIndex
Returns the part index where the nearest coordinate was found.
segmentIndex
Returns the segment index on the part where the nearest coordinate was found.
squareDistanceFound
Returns the squared distance.
Returns a coordinate that is closest to the input coordinate.

Syntax

Visual Basic (Declaration) 
Public Overloads Function GetNearestCoordinate( _
   ByVal inputPoint As Point, _
   ByVal nearestCoordinate As Coordinate, _
   ByRef partIndex As Integer, _
   ByRef segmentIndex As Integer, _
   ByRef squareDistanceFound As Double _
) As Boolean
C# 
public bool GetNearestCoordinate( 
   Point inputPoint,
   Coordinate nearestCoordinate,
   ref int partIndex,
   ref int segmentIndex,
   ref double squareDistanceFound
)

Parameters

inputPoint
The input point to compare to.
nearestCoordinate
Returns the previous vertex index on the part where the nearest coordinate was found.
partIndex
Returns the part index where the nearest coordinate was found.
segmentIndex
Returns the segment index on the part where the nearest coordinate was found.
squareDistanceFound
Returns the squared distance.

Exceptions

ExceptionDescription
ArgumentNullExceptionNull point.

Requirements

Target 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

© 2013 All Rights Reserved.