Click or drag to resize

Segment Class

A class representing an edge of a multipart geometry, connecting a start to an end point.
Inheritance Hierarchy

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

The Segment type exposes the following members.

Properties
  NameDescription
Public propertyEndPoint
Retrieve the end point of the segment.
Public propertyIsClosed
Indicates is a segment is closed, it has a matching start and end point.
Public propertySpatialReference
Retrieve the spatial reference for the segment.
Public propertyStartPoint
Retrieve the start point of the segment.
Top
Methods
  NameDescription
Public methodIsEqual
Checks if two segments and their spatial references are equal.
Top
Remarks

A segment describes a continuous line between a start location and an end location. Every Part in a Multipart geometry is a collection of segments where the end of one segment is at exactly the same location as the start of the following segment. The ArcGIS platform supports both straight and curved segments, but ArcGIS Runtime only supports LineSegment at the current release. Multipart geometries can be composed from and decomposed into segments if required; until true curves are supported fully, using map point-based methods offers equivalent functionality.

Because a single location is shared by adjacent segments, a single MapPoint object is used to represent the shared location when you iterate through the map points in a part. As a result, when iterating through the map points in a part of a Polyline, there will be one more MapPoint than the number of segments in that same part.

Like the geometries they comprise, segments are immutable.

Segments are used as the building blocks of the parts of Polygon and Polyline classes.

See Also