Show / Hide Table of Contents

Method CreatePointAlong

CreatePointAlong(Polyline, Double)

Returns the point at the given distance along the line.

Declaration
public static MapPoint CreatePointAlong(this Polyline polyline, double distance)
Parameters
Type Name Description
Polyline polyline

The polyline from which point is created.

System.Double distance

The distance along the polyline in the units of the polyline where point is created.

Returns
Type Description
MapPoint

The point at the given distance along the line.

Remarks

If distance is less than or equal to zero, the point returned is coincident with the start of the line. If distance is greater than or equal to the line's length, the point returned is coincident with the end of the line. If the line has multiple parts, and the distance falls exactly on a boundary between two parts, the returned point will be coincident with either the end of one part or the start of the next which is undetermined.

Supports true curves.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.2.1 - 200.7
Xamarin.Android100.2.1 - 100.15
Xamarin.iOS100.2.1 - 100.15
UWP100.2.1 - 200.7
In This Article
Back to top Copyright © 2022 Esri.