Interface IAvaloniaList<T>
- Namespace
- Avalonia.Collections
- Assembly
- Avalonia.Base.dll
A notifying list.
public interface IAvaloniaList<T> : IList<T>, ICollection<T>, IAvaloniaReadOnlyList<T>, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
Type Parameters
T
The type of the items in the list.
- Inherited Members
- Extension Methods
Properties
Count
Gets the number of items in the list.
int Count { get; }
Property Value
this[int]
Gets or sets the element at the specified index.
T this[int index] { get; set; }
Parameters
index
intThe index.
Property Value
- T
The element at the requested index.
Methods
AddRange(IEnumerable<T>)
Adds multiple items to the collection.
void AddRange(IEnumerable<T> items)
Parameters
items
IEnumerable<T>The items.
InsertRange(int, IEnumerable<T>)
Inserts multiple items at the specified index.
void InsertRange(int index, IEnumerable<T> items)
Parameters
index
intThe index.
items
IEnumerable<T>The items.
Move(int, int)
Moves an item to a new index.
void Move(int oldIndex, int newIndex)
Parameters
MoveRange(int, int, int)
Moves multiple items to a new index.
void MoveRange(int oldIndex, int count, int newIndex)
Parameters
oldIndex
intThe first index of the items to move.
count
intThe number of items to move.
newIndex
intThe index to move the items to.
RemoveAll(IEnumerable<T>)
Removes multiple items from the collection.
void RemoveAll(IEnumerable<T> items)
Parameters
items
IEnumerable<T>The items.
RemoveRange(int, int)
Removes a range of elements from the collection.
void RemoveRange(int index, int count)