public ProximityResult NearestVertex( Geometry geometry, MapPoint point )
Public Function NearestVertex( _ ByVal geometry As Geometry, _ ByVal point As MapPoint _ ) As ProximityResult
Parameters
- geometry
- The geometry.
- point
- The point to which the returned vertex will be nearest.
Return Value
ProximityResult.
ProximityResult.PointIndex is the index of the nearest vertex.
ProximityResult.SegmentIndex is null.
ProximityResult.PartIndex is the index of the part containing the nearest vertex.
Proximity.RightSide = false.
If either of the input geometries are empty, then ProximityResult.Distance = -1, ProximityResult.Point is empty, ProximityResult.PartIndex = -1, ProximityResult.PointIndex is null, and ProximityResult.SegmentIndex = null.