Show / Hide Table of Contents

Class LayerCollection

A collection of layers

Inheritance
object
RuntimeCollection<Layer>
RuntimeObservableCollection<Layer>
LayerCollection
Implements
IList<Layer>
ICollection<Layer>
IList
ICollection
IReadOnlyList<Layer>
IReadOnlyCollection<Layer>
IEnumerable<Layer>
IEnumerable
INotifyPropertyChanged
INotifyCollectionChanged
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Esri.ArcGISRuntime.Mapping
Assembly: Esri.ArcGISRuntime.dll
Syntax
public class LayerCollection : RuntimeObservableCollection<Layer>, IList<Layer>, ICollection<Layer>, IList, ICollection, IReadOnlyList<Layer>, IReadOnlyCollection<Layer>, IEnumerable<Layer>, IEnumerable, INotifyPropertyChanged, INotifyCollectionChanged

Constructors

Name Description
LayerCollection()

Initializes a new instance of the LayerCollection class.

Properties

Name Description
this[string]

Gets a layer in the collection by its Id.

Methods

Name Description
ClearItems()

Called by base class Collection<T> when the list is being cleared; raises a CollectionChanged event to any listeners.

RemoveItem(int)

Called by base class Collection<T> when an item is removed from list; raises a CollectionChanged event to any listeners.

Applies to

TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 300.0
.NET Windows100.13 - 300.0
.NET Android200.0 - 300.0
.NET iOS200.0 - 300.0
.NET Framework100.0 - 200.8
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.8

Relevant samples

Add an integrated mesh layer: View an integrated mesh layer from a scene service.
Add ENC exchange set: Display nautical charts per the ENC specification.
Create, delete, and update features: Add, delete, and update features (geometry and attributes) in a feature layer.
Analyze hotspots: Use a geoprocessing service and a set of features to identify statistically significant hot spots and cold spots.
In this article
Provide feedback
Back to top Copyright © 2025 Esri.