Class ReadOnlyPart
Represents an single part of an multipart geometry (polygon or polyline).
Implements
Namespace: Esri.ArcGISRuntime.Geometry
Assembly: Esri.ArcGISRuntime.dll
Syntax
public class ReadOnlyPart : IReadOnlyList<Segment>, IReadOnlyCollection<Segment>, IEnumerable<Segment>, IEnumerable
Remarks
A collection of Segment objects that together represent a part in a Multipart geometry. You
can also access the Map
Prior to v100.12, the only supported segment type was Line
From v100.12, curve segments may be returned from Esri.
Properties
Name | Description |
---|---|
Count | Gets the number of elements contained in the System.Collections.Generic.ICollection<T>. |
End |
Gets the end point of the last segment in the part, or |
Has |
Gets a value indicating whether the part has any curves. |
Is |
Gets a value indicating whether the part contains no segments. |
Item[Int32] | Gets or sets the element at the specified index. |
Point |
Gets the count of points in the part. |
Points | Gets a collection of all points that are vertexes of the part. |
Segment |
Gets the count of segments in the part. |
Spatial |
Gets the spatial reference for the immutable part, or |
Start |
Gets the start point of the first segment in the part, or |
Methods
Name | Description |
---|---|
Get |
For a segment at a specified segment_index the method returns the point index of the segment's end point. |
Get |
Returns an enumerator that iterates through the collection. |
Get |
Converts from a point index to a segment index that uses the given point as an end point. If the point is not an end point then a value equivalent to -1 value is returned. |
Get |
Converts from a point index to a segment index of the start point and another segment index containing the end point. If the point is not a start or end point a value equivalent to -1 is set. |
Get |
Converts from a point index to a segment index that uses the given point as a start point. If the point is not a start point then a value equivalent to -1 value is returned. |
Get |
For a segment at a specified segment_index the method returns the point index of the segment's start point. |
Name | Description |
---|---|
IEnumerable. |
Returns an enumerator that iterates through a collection. |
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.15 |