Show / Hide Table of Contents

Class RuntimeCollection<T>

This Collection handles internal ArcGIS Runtime collections and is functionally equivalent to System.Collections.ObjectModel.Collection{T}. This type is for internal use only and is not meant to be used directly. Instead use the concrete subclasses provided.

Inheritance
System.Object
RuntimeCollection<T>
RuntimeObservableCollection<T>
Implements
IEnumerable<T>
ICollection<T>
IEnumerable
IList
ICollection
IReadOnlyList<T>
IReadOnlyCollection<T>
Namespace: Esri.ArcGISRuntime
Assembly: Esri.ArcGISRuntime.dll
Syntax
public abstract class RuntimeCollection<T> : IList<T>
Type Parameters
Name Description
T

Collection type

Properties

Name Description
Count

Gets the number of elements contained in the RuntimeCollection<T>.

IsReadOnly

Gets a value indicating whether the collection is read-only.

Item[Int32]

Gets or sets the element at the specified index.

Methods

Name Description
Add(T)

Adds an item to the collection.

AddRange(IEnumerable<T>)

Adds the elements of the specified collection to the end of the RuntimeCollection<T>.

Clear()

Removes all items from the collection

ClearItems()

Removes all elements from the collection.

Contains(T)

Determines whether the collection contains a specific value.

CopyTo(T[], Int32)

Copies the elements of the collection to an System.Array, starting at a particular System.Array index.

GetEnumerator()

Returns an enumerator that iterates through the collection.

IndexOf(T)

Determines the index of a specific item in the collection.

Insert(Int32, T)

Inserts an item to the collection at the specified index.

InsertItem(Int32, T)

Inserts an element into the collection at the specified index.

Move(Int32, Int32)

Moves the item at the specified index to a new location in the collection.

MoveItem(Int32, Int32)

Moves the item at the specified index to a new location in the collection.

Remove(T)

Removes the first occurrence of a specific object from the collection

RemoveAt(Int32)

Removes the item at the specified index.

RemoveItem(Int32)

Removes the element at the specified index of the collection.

SetItem(Int32, T)

Replaces the element at the specified index.

Applies to

TargetVersions
.NET Standard 2.0100.3 - 100.13
.NET Framework100.0 - 100.8
.NET 5100.11
.NET Core 3.1100.7 - 100.8
Xamarin.Android100.0 - 100.13
Xamarin.iOS100.0 - 100.8
UWP100.0 - 100.15
In This Article
Back to top Copyright © 2022 Esri.