Class PointCollection
Collection of MapPoint.
Namespace: Esri.ArcGISRuntime.Geometry
Assembly: Esri.ArcGISRuntime.dll
Syntax
public class PointCollection : IList<MapPoint>, ICollection<MapPoint>, IEnumerable<MapPoint>, IEnumerable
Constructors
| Name | Description |
|---|---|
| PointCollection() | Initializes a new instance of the PointCollection class without a SpatialReference |
| PointCollection(SpatialReference?) | Initializes a new instance of the PointCollection class with a given SpatialReference |
| PointCollection(IEnumerable<MapPoint>) | Initializes a new instance of the PointCollection class. Populates with the supplied points. |
| PointCollection(IEnumerable<MapPoint>, SpatialReference?) | Initializes a new instance of the PointCollection class. The spatial reference is used if the input points don't have one. |
Properties
| Name | Description |
|---|---|
| Capacity | Gets or sets a value to reserve the space to hold the specified number of points. If the number of points are known in advance this provides a performance benefit as it avoid reallocations as the collection grows. |
| Count | Gets the number of points contained in the ICollection<T>. |
| IsReadOnly | Gets a value indicating whether the ICollection<T> is read-only. |
| this[int] | Gets or sets the element at the specified index. |
| SpatialReference | Gets the spatial reference of this point collection. |
Methods
| Name | Description |
|---|---|
| Add(MapPoint) | Adds an item to the ICollection<T>. |
| Add(double, double) | Adds a new point with the specified x and y coordinate to the end of this point collection. |
| Add(double, double, double) | Adds a new point with a specified x,y,z coordinate to the end of this point collection. |
| AddPoints(IEnumerable<MapPoint>) | Adds a collection of points to the end of this point collection. |
| Clear() | Removes all items from the ICollection<T>. |
| Clone() | Creates a deep clone of the current PointCollection. All points are copied into the new instance. |
| Contains(MapPoint) | Determines whether the ICollection<T> contains a specific value. |
| CopyTo(MapPoint[], int) | Copies a collection of coordinates from this instance. |
| GetEnumerator() | Returns an enumerator that iterates through the collection. |
| GetPoint(int, out double, out double) | Gets the coordinates of a specified point |
| GetPoint(int, out double, out double, out double) | Gets the coordinates of a specified 3D point |
| IndexOf(MapPoint) | Determines the index of a specific item in the IList<T>. |
| Insert(int, MapPoint) | Inserts an item to the IList<T> at the specified index. |
| Remove(MapPoint) | Removes the first occurrence of a specific object from the ICollection<T>. |
| RemoveAt(int) | Removes the IList<T> item at the specified index. |
| SetPoint(int, double, double) | Sets the coordinates of a specified point |
| SetPoint(int, double, double, double) | Sets the coordinates of a specified point |
Extension Methods
Applies to
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 |
| .NET | 100.13 - 300.0 |
| .NET Windows | 100.13 - 300.0 |
| .NET Android | 200.0 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.0 - 200.8 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 200.8 |