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.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 Android200
.NET 6.0 iOS200
.NET Framework100.0 - 200.0
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.15
iOS100.0 - 100.15
UWP100.0 - 200.0
In This Article
Back to top Copyright © 2022 Esri.