ArcGIS Pro 2.6 API Reference Guide
GetMsAtDistance Method (GeometryEngine)

ArcGIS.Core.Geometry Namespace > GeometryEngine Class : 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
public void GetMsAtDistance( 
   Multipart multipart,
   double distance,
   AsRatioOrLength asRatioOrLength,
   out double m1,
   out double m2
)
Public 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

GeometryEngine Class
GeometryEngine Members