Skip To Content ArcGIS for Developers Sign In Dashboard

ImmutablePart QML Type

An immutable collection of Segments that compose a single part of an immutable Multipart geometry (Polygon} or Polyline). More...

Import Statement: import Esri.ArcGISRuntime 100.6
Since: Esri.ArcGISRuntime 100.0
Inherits:

Object

Properties

Methods

Detailed Description

Note: You cannot declare or create a component of this type in QML code.

Use the parts property on Multipart to get an ImmutablePartCollection, which can then be used to iterate through the Segments and Points in each ImmutablePart.

Property Documentation

empty : bool

Returns whether the ImmutablePart contains any points or segments (read-only).


hasCurves : bool

Returns true if this part has curves (read-only).


pointCount : int

Returns the number of points the ImmutablePart contains (read-only).


segmentCount : int

Returns the number of segments the ImmutablePart contains (read-only).


spatialReference : SpatialReference

Returns the SpatialReference of ImmutablePart (read-only).


Method Documentation

Point endPoint()

Gets the end point of the ImmutablePart.

Returns the end Point or null if there isn't one.


int endPointIndexFromSegmentIndex(int segmentIndex)

Gets the end point index from the given segmentIndex.

Returns the end point index or -1 on error or invalid index.


Point point(int pointIndex)

Gets the Point at index pointIndex.

Returns the Point or null if not found.


Gets the points of the ImmutablePart.

Returns the ImmutablePointCollection of this ImmutablePart.


Segment segment(int segmentIndex)

Gets the Segment at segmentIndex.

Returns the Segment or null if the index isn't valid.


int segmentEndPointIndexFromPointIndex(int pointIndex)

Gets the segment end point index from the given pointIndex.

Returns the segment end point index or -1 on error or invalid index.


int segmentIndexFromEndPointIndex(int pointIndex)

Gets the segment index from the end point index pointIndex.

Returns the segment point index or -1 on error or invalid index.


int segmentIndexFromStartPointIndex(int pointIndex)

Gets the segment index from the start point index pointIndex.

Returns the segment point index or -1 on error or invalid index.


int segmentStartPointIndexFromPointIndex(int pointIndex)

Gets the segment start point index from the given pointIndex.

Returns the segment start point index or -1 on error or invalid index.


Point startPoint()

Gets the start point of the ImmutablePart.

Returns the start Point or null if there isn't one.


int startPointIndexFromSegmentIndex(int segmentIndex)

Gets the start point index from the given segmentIndex.

Returns the start point index or -1 on error or invalid index.



Feedback on this topic?