Table of Contents

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

int

this[int]

Gets or sets the element at the specified index.

T this[int index] { get; set; }

Parameters

index int

The 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 int

The index.

items IEnumerable<T>

The items.

Move(int, int)

Moves an item to a new index.

void Move(int oldIndex, int newIndex)

Parameters

oldIndex int

The index of the item to move.

newIndex int

The index to move the item to.

MoveRange(int, int, int)

Moves multiple items to a new index.

void MoveRange(int oldIndex, int count, int newIndex)

Parameters

oldIndex int

The first index of the items to move.

count int

The number of items to move.

newIndex int

The 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)

Parameters

index int

The first index to remove.

count int

The number of items to remove.