Class PointCollection
Collection of MapPoint.
Inheritance
Implements
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 System.Collections.Generic.ICollection<T>. |
IsReadOnly | Gets a value indicating whether the System.Collections.Generic.ICollection<T> is read-only. |
Item[Int32] | 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 System.Collections.Generic.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 System.Collections.Generic.ICollection<T>. |
Clone() | Creates a deep clone of the current PointCollection. All points are copied into the new instance. |
Contains(MapPoint) | Determines whether the System.Collections.Generic.ICollection<T> contains a specific value. |
CopyTo(MapPoint[], Int32) | Copies a collection of coordinates from this instance. |
GetEnumerator() | Returns an enumerator that iterates through the collection. |
GetPoint(Int32, out Double, out Double) | Gets the coordinates of a specified point |
GetPoint(Int32, 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 System.Collections.Generic.IList<T>. |
Insert(Int32, MapPoint) | Inserts an item to the System.Collections.Generic.IList<T> at the specified index. |
Remove(MapPoint) | Removes the first occurrence of a specific object from the System.Collections.Generic.ICollection<T>. |
RemoveAt(Int32) | Removes the System.Collections.Generic.IList<T> item at the specified index. |
SetPoint(Int32, Double, Double) | Sets the coordinates of a specified point |
SetPoint(Int32, Double, Double, Double) | Sets the coordinates of a specified point |
Name | Description |
---|---|
IEnumerable.GetEnumerator() | Returns an enumerator that iterates through a collection. |
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 |