A mutable collection of parts for creating a Multipart geometry from a MultipartBuilder. More...
Import Statement: | import Esri.ArcGISRuntime 100.15 |
Since: | Esri.ArcGISRuntime 100.0 |
Inherits: |
Properties
- empty : bool
- size : int
- spatialReference : SpatialReference
Signals
Methods
- int addPart(Part part)
- void addParts(list<Part> parts)
- int indexOf(Part part)
- void insertPart(int index, Part part)
- Part part(int index)
- void removeAll()
- void removePart(int index)
- void setPart(int index, Part part)
Detailed Description
The spatial reference must be set before adding parts and cannot be changed after the collection contains parts.
Parts can be added to, inserted into, and removed from PartCollections in order to define or change the complete shape of a Multipart (for example a Polygon or Polyline).
This QML type supports the following default properties. A default property may be declared inside another declared object without being assigned explicitly to a property.
Type | Default Property |
---|---|
SpatialReference | spatialReference |
Part | part |
Property Documentation
Returns whether this PartCollection contains no parts (read-only).
Returns the number of parts in this PartCollection (read-only).
[default] spatialReference : SpatialReference |
The spatial reference of the PartCollection.
Note: The spatial reference can only be changed while the PartCollection is empty
.
See also empty.
Signal Documentation
Emitted when the empty property changes.
Note: The corresponding handler is onEmptyChanged
.
Emitted when the size property changes.
Note: The corresponding handler is onSizeChanged
.
Emitted when the spatialReference property changes.
Note: The corresponding handler is onSpatialReferenceChanged
.
Method Documentation
int addPart(Part part) |
Adds a part to the PartCollection.
Returns the index where the part was added, or -1
on error.
void addParts(list<Part> parts) |
Adds a list of parts to the PartCollection.
This method was introduced in Esri.ArcGISRuntime 100.1.
int indexOf(Part part) |
Gets the index of part.
Returns -1
if the part is not in the collection.
void insertPart(int index, Part part) |
Inserts a part into the PartCollection at index.
Part part(int index) |
Removes all the parts from this PartCollection.