Show / Hide Table of Contents

Class LineSegment

A class representing a straight line between a start and end point.

Inheritance
object
Segment
LineSegment
Segment.StartPoint
Segment.EndPoint
Segment.SpatialReference
Segment.IsClosed
Segment.IsCurve
Segment.IsEqual(Segment)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: Esri.ArcGISRuntime.Geometry
Assembly: Esri.ArcGISRuntime.dll
Syntax
public class LineSegment : Segment

Constructors

Name Description
LineSegment(MapPoint, MapPoint)

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

LineSegment(MapPoint, MapPoint, SpatialReference?)

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

LineSegment(double, double, double, double)

Initializes a new instance of the LineSegment class on coordinates

LineSegment(double, double, double, double, SpatialReference?)

Initializes a new instance of the LineSegment class based on coordinates.

LineSegment(double, double, double, double, double, double)

Initializes a new instance of the LineSegment class based on 3D coordinates

LineSegment(double, double, double, double, double, double, SpatialReference?)

Initializes a new instance of the LineSegment class based on 3D coordinates and a spatial reference.

Methods

Name Description
CreateLineAtAngleFromStartPoint(MapPoint, double, double)

Creates a line segment of the specified length and angle from a given start point.

ToString()

Returns a string that represents the current object.

Applies to

TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 300.0
.NET Windows100.13 - 300.0
.NET Android200.0 - 300.0
.NET iOS200.0 - 300.0
.NET Framework100.0 - 200.8
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.8
In this article
Provide feedback
Back to top Copyright © 2025 Esri.