Show / Hide Table of Contents

Class LayerCollection

A collection of layers

Inheritance
System.Object
Esri.ArcGISRuntime.RuntimeCollection<Layer>
Esri.ArcGISRuntime.RuntimeObservableCollection<Layer>
LayerCollection
Implements
System.Collections.Generic.IList<Layer>
System.Collections.Generic.ICollection<Layer>
System.Collections.IList
System.Collections.ICollection
System.Collections.Generic.IReadOnlyList<Layer>
System.Collections.Generic.IReadOnlyCollection<Layer>
System.Collections.Generic.IEnumerable<Layer>
System.Collections.IEnumerable
System.ComponentModel.INotifyPropertyChanged
System.Collections.Specialized.INotifyCollectionChanged
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.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
Item[String]

Gets a layer in the collection by its Id.

Methods

Name Description
ClearItems()
RemoveItem(Int32)

Applies to

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

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
Back to top Copyright © 2022 Esri.