Click or drag to resize

LineSegment Constructor (MapPoint, MapPoint, SpatialReference)

Initializes a new instance of the LineSegment class based on two points and a spatial reference.

Namespace:  Esri.ArcGISRuntime.Geometry
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.9.0
Syntax
public LineSegment(
	MapPoint startPoint,
	MapPoint endPoint,
	SpatialReference spatialReference
)

Parameters

startPoint
Type: Esri.ArcGISRuntime.GeometryMapPoint
The start point.
endPoint
Type: Esri.ArcGISRuntime.GeometryMapPoint
The end point.
spatialReference
Type: Esri.ArcGISRuntime.GeometrySpatialReference
A spatial reference
Remarks
Use this method to create a line segment. This represents a straight line between two points. The spatial reference parameter is used if the points have a NULL spatial reference. If more than one spatial reference is supplied they must all be equal.
See Also