ImmutablePartCollection QML Type

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

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

    Object

    Properties

    Methods

    • 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

    [read-only] empty : bool

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


    [read-only] size : int

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


    [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.


    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.