Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the shortest distance from the point represented by the specified coordinates to a point on the path.
Version Information
Version Added: Visio 2010
Syntax
DISTTOPATH(section,x,y)
Parameters
Name |
Required/Optional |
Data Type |
Description |
|---|---|---|---|
section |
Required |
String |
The Geometry section that represents the path, specified by a reference to its Path cell (for example, Geometry1.Path). |
x |
Required |
Double |
The x-coordinate of the point. |
y |
Required |
Double |
The y-coordinate of the point. |
Return Value
Double
Remarks
Microsoft Visio returns #REF! if section does not exist.
The returned value is positive if the point is to the left of the direction of travel; it is negative if the point is to the right of the direction of travel.