## ClosestPointOn

**Syntax**

ClosestPointOn(MapWinGeoProc.Topology2D.Extents Ext)

**Summary**

If the two extents intersect, this returns null. This checks all the possible shortest paths between the 4 Borders of both extents. This finds the shortest one and then reutrns the location of the point on the specified extents rectangle that is closest to this one.

**Parameters**

Ext |
Extents to compare to this object. |

**Returns**

A point representing the closest point on the specified extents. Returns null if the two extents intersect.

Visual Basic Net 2005 Example
Implementation Code

Visual C# 2005 Example Implementation
Code

Back to
ClosestPointOn