ArcGIS Pro 2.6 API Reference Guide
GetMsAtDistance Method (IGeometryEngine)

ArcGIS.Core.Geometry Namespace > IGeometryEngine Interface : GetMsAtDistance Method
The multipart from which to get the M values.
The distance along the multipart to retrieve the M values.
Indicates whether the distance should be interpreted as length or ratio along the multipart.
The M value at the specified distance.
The second M value, if there is one. If the specified distance is not at the beginning or the ending of a part, then this value is NaN.
Get the M values at the specified distance along the multipart. Two M values can be returned if the specified distance is exactly at the beginning or the ending of a part.
Syntax
Sub GetMsAtDistance( _
   ByVal multipart As Multipart, _
   ByVal distance As Double, _
   ByVal asRatioOrLength As AsRatioOrLength, _
   ByRef m1 As Double, _
   ByRef m2 As Double _
) 

Parameters

multipart
The multipart from which to get the M values.
distance
The distance along the multipart to retrieve the M values.
asRatioOrLength
Indicates whether the distance should be interpreted as length or ratio along the multipart.
m1
The M value at the specified distance.
m2
The second M value, if there is one. If the specified distance is not at the beginning or the ending of a part, then this value is NaN.
Exceptions
ExceptionDescription
The input multipart is null.
The input multipart is not M-aware.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

IGeometryEngine Interface
IGeometryEngine Members