ArcGIS Developers

ImmutablePartCollection QML Type

Represents an immutable collection of Parts that compose a Multipart geometry (Polygon or Polyline). More...

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




  • int indexOf(ImmutablePart part)
  • ImmutablePart part(int index)

Detailed Description

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

Use the parts property on Multipart to iterate through all of the parts in a Multipart.

Because geometries themselves are immutable, the collections they are composed of are also immutable. For geometry editing or creation workflows, a mutable PartCollection is used instead. PartCollection has constructors that take an ImmutablePartCollection, allowing creation of new geometries from parts of existing ones.

Property Documentation

empty : bool

Returns whether the ImmutablePartCollection contains any parts (read-only).

size : int

Returns the number of parts the ImmutablePartCollection contains (read-only).

spatialReference : SpatialReference

Returns the spatial reference of the ImmutablePartCollection (read-only).

Method Documentation

int indexOf(ImmutablePart part)

Gets the index of part.

Returns the index or -1 if not found.

ImmutablePart part(int index)

Gets the Part at index.

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

Feedback on this topic?