Skip To Content ArcGIS for Developers Sign In Dashboard

LineSegment QML Type

Represents a straight line between a start and end Point. More...

Import Statement: import Esri.ArcGISRuntime 100.9
Since: Esri.ArcGISRuntime 100.0




Detailed Description

LineSegments are used to represent the edges of Polygons and Polylines.

The SpatialReference of a LineSegment can be unspecified. If subsequently added to a Part, it will take on the SpatialReference of that SegmentCollection.

This QML type supports the following default properties. A default property may be declared inside another declared object without being assigned explicitly to a property.

Property Documentation

[default] endPoint : Point

The end point of this LineSegment.

[default] spatialReference : SpatialReference

[default] startPoint : Point

The start point of this LineSegment.

Method Documentation

LineSegment createLineAtAngleFromStartPoint(startPoint, double angleRadians, double length)

A static method to create a LineSegment from a startPoint, angleRadians and a length.

This method can only be accessed via the Factory object now since the 100.9 release.

//LineSegment.createLineAtAngleFromStartPoint(...); // old code
Factory.LineSegment.createLineAtAngleFromStartPoint(...); // replacement code

Feedback on this topic?