Skip to main content

IAvaloniaReadOnlyList<T> Interface

A read-only notifying list.

Definition​

Namespace: Avalonia.Collections
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public interface IAvaloniaReadOnlyList<out T> : IReadOnlyList<T>, 
IEnumerable<T>, IEnumerable, IReadOnlyCollection<T>, INotifyCollectionChanged, INotifyPropertyChanged

View Source
ImplementsIEnumerable(T), IReadOnlyCollection(T), IReadOnlyList(T), IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged

Type Parameters​

The type of the items in the list.

Properties​

CountGets the number of elements in the collection.
(Inherited from IReadOnlyCollection(T))
Item(Int32)Gets the element at the specified index in the read-only list.
(Inherited from IReadOnlyList(T))

Methods​

GetEnumerator()Returns an enumerator that iterates through the collection.
(Inherited from IEnumerable(T))

Events​

CollectionChangedOccurs when the collection changes.
(Inherited from INotifyCollectionChanged)
PropertyChangedOccurs when a property value changes.
(Inherited from INotifyPropertyChanged)

Extension Methods​

ForEachItem(T)(Action(T), Action(T), Action, Boolean)Invokes an action for each item in a collection and subsequently each item added or removed from the collection.
(Defined by AvaloniaListExtensions)
ForEachItem(T)(Action(Int32, T), Action(Int32, T), Action, Boolean)Invokes an action for each item in a collection and subsequently each item added or removed from the collection.
(Defined by AvaloniaListExtensions)
GetWeakCollectionChangedObservable()Gets a weak observable for the CollectionChanged event.
(Defined by NotifyCollectionChangedExtensions)
TrackItemPropertyChanged(T)(Action(Tuple(Object, PropertyChangedEventArgs)))Listens for property changed events from all items in a collection.
(Defined by AvaloniaListExtensions)
WeakSubscribe(Action(NotifyCollectionChangedEventArgs))Subscribes to the CollectionChanged event using a weak subscription.
(Defined by NotifyCollectionChangedExtensions)
WeakSubscribe(NotifyCollectionChangedEventHandler)Subscribes to the CollectionChanged event using a weak subscription.
(Defined by NotifyCollectionChangedExtensions)

See Also​

Reference​

Avalonia.Collections Namespace