Computes the distance between two points on the specified map. The result is in the map units of the specified map.
[Visual Basic 6.0] Function ComputeDistance(
ByVal MapName As String, _
ByVal fromPoint As IPoint, _
ByVal toPoint As IPoint, _
ByVal Units As esriUnits _
) As Double
[Visual Basic .NET] Public Function ComputeDistance ( _ ByVal MapName As String, _ ByVal fromPoint As IPoint, _ ByVal toPoint As IPoint, _ ByVal Units As esriUnits _ ) As Double
[C#] public double ComputeDistance ( string MapName, IPoint fromPoint, IPoint toPoint, esriUnits Units );
[Java] public double computeDistance ( String MapName, IPoint fromPoint, IPoint toPoint, esriUnits Units ) throws IOException, AutomationException
[C++] HRESULT ComputeDistance( BSTR MapName, IPoint* fromPoint, IPoint* toPoint, esriUnits Units, double* Distance );
Parameters
MapName [in]
MapName is a parameter of type BSTR
fromPoint [in]
fromPoint is a parameter of type IPoint
toPoint [in]
toPoint is a parameter of type IPoint
Units [in]
Units is a parameter of type esriUnits
Distance [out, retval]
Distance is a parameter of type double