IAvaloniaReadOnlyListT Interface

A read-only notifying list.

Definition

Namespace: Avalonia.Collections
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public interface IAvaloniaReadOnlyList<out T> : IReadOnlyList<T>, 
	IEnumerable<T>, IEnumerable, IReadOnlyCollection<T>, INotifyCollectionChanged, INotifyPropertyChanged
Implements
IEnumerableT, IReadOnlyCollectionT, IReadOnlyListT, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged

Type Parameters

T
The type of the items in the list.

Properties

CountGets the number of elements in the collection.
(Inherited from IReadOnlyCollectionT)
ItemInt32Gets the element at the specified index in the read-only list.
(Inherited from IReadOnlyListT)

Methods

GetEnumeratorReturns an enumerator that iterates through the collection.
(Inherited from IEnumerableT)

Events

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

Extension Methods

ForEachItemT(ActionT, ActionT, Action, Boolean) Invokes an action for each item in a collection and subsequently each item added or removed from the collection.
(Defined by AvaloniaListExtensions)
ForEachItemT(ActionInt32, T, ActionInt32, 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)
TrackItemPropertyChangedT(ActionTupleObject, PropertyChangedEventArgs) Listens for property changed events from all items in a collection.
(Defined by AvaloniaListExtensions)
WeakSubscribe(ActionNotifyCollectionChangedEventArgs) 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