Click or drag to resize

LineSegment Class

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

Namespace:  Esri.ArcGISRuntime.Geometry
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.9.0
Syntax
public class LineSegment : Segment

The LineSegment type exposes the following members.

Constructors
  NameDescription
Public methodLineSegment(MapPoint, MapPoint)
Initializes a new instance of the LineSegment class based on two points.
Public methodLineSegment(MapPoint, MapPoint, SpatialReference)
Initializes a new instance of the LineSegment class based on two points and a spatial reference.
Public methodLineSegment(Double, Double, Double, Double)
Initializes a new instance of the LineSegment class on coordinates
Public methodLineSegment(Double, Double, Double, Double, SpatialReference)
Initializes a new instance of the LineSegment class based on coordinates
Public methodLineSegment(Double, Double, Double, Double, Double, Double)
Initializes a new instance of the LineSegment class based on 3D coordinates
Public methodLineSegment(Double, Double, Double, Double, Double, Double, SpatialReference)
Initializes a new instance of the LineSegment class based on 3D coordinates and a spatial reference
Top
Properties
  NameDescription
Public propertyEndPoint
Retrieve the end point of the segment.
(Inherited from Segment.)
Public propertyIsClosed
Indicates is a segment is closed, it has a matching start and end point.
(Inherited from Segment.)
Public propertySpatialReference
Retrieve the spatial reference for the segment.
(Inherited from Segment.)
Public propertyStartPoint
Retrieve the start point of the segment.
(Inherited from Segment.)
Top
Methods
  NameDescription
Public methodStatic memberCreateLineAtAngleFromStartPoint
Creates a line segment of the specified length and angle from a given start point.
Public methodIsEqual
Checks if two segments and their spatial references are equal.
(Inherited from Segment.)
Public methodToString
Returns a String that represents the current Object.
(Overrides ObjectToString.)
Top
See Also