Class Multipart
Represents an abstract multipart geometry type that defines common members for polyline and polygon multipart geometries.
Namespace: Esri.ArcGISRuntime.Geometry
Assembly: Esri.ArcGISRuntime.dll
Syntax
public abstract class Multipart : Geometry
Remarks
MultiParts are based upon the parent Geometry Class. The Geometry Class is immutable which means that you can not change its shape once it is created. If you need to modify a MultiPart once it has been created, use the MultipartBuilder<T> Class instead. The ToGeometry() Method provides you with the base Geometry object.
Multipart geometry is comprised of a collection of shapes (of the same type) that is managed as a single geometry. A classic example is a set of islands that represent a single country or state. The individual island shapes are distinct, but ArcGIS considers it a single geometry.
Polygon and Polyline inherit from Multipart, which in turn inherits from Geometry. Multipart provides access to the geometry's ReadOnlyList of ReadOnlyPart objects. Each ReadOnlyPart contains a collection of Segment objects. You can iterate through the segments or points in each part.
Properties
Name | Description |
---|---|
Extent | Gets the minimum enclosing Envelope of the instance |
HasM | Gets a value indicating whether the geometry has an M value. |
HasZ | Gets a value indicating whether the geometry has a Z coordinate. |
IsEmpty | Gets a value indicating whether or not the geometry is empty. |
Parts | Gets the parts in the geometry |
Extension Methods
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.0 - 200.5 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.5 |