IAvaloniaListT Interface

A notifying list.

Definition

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

Type Parameters

T
The type of the items in the list.

Properties

Count Gets the number of items in the list.
IsReadOnlyGets a value indicating whether the ICollectionT is read-only.
(Inherited from ICollectionT)
ItemInt32 Gets or sets the element at the specified index.

Methods

Add(T)Adds an item to the ICollectionT.
(Inherited from ICollectionT)
AddRange(IEnumerableT) Adds multiple items to the collection.
ClearRemoves all items from the ICollectionT.
(Inherited from ICollectionT)
Contains(T)Determines whether the ICollectionT contains a specific value.
(Inherited from ICollectionT)
CopyTo(T, Int32)Copies the elements of the ICollectionT to an Array, starting at a particular Array index.
(Inherited from ICollectionT)
GetEnumeratorReturns an enumerator that iterates through the collection.
(Inherited from IEnumerableT)
IndexOf(T)Determines the index of a specific item in the IListT.
(Inherited from IListT)
Insert(Int32, T)Inserts an item to the IListT at the specified index.
(Inherited from IListT)
InsertRange(Int32, IEnumerableT) Inserts multiple items at the specified index.
Move(Int32, Int32) Moves an item to a new index.
MoveRange(Int32, Int32, Int32) Moves multiple items to a new index.
Remove(T)Removes the first occurrence of a specific object from the ICollectionT.
(Inherited from ICollectionT)
RemoveAll(IEnumerableT) Removes multiple items from the collection.
RemoveAt(Int32)Removes the IListT item at the specified index.
(Inherited from IListT)
RemoveRange(Int32, Int32) Removes a range of elements from the collection.

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