Skip to main content

IAvaloniaList<T> Interface

Definition

Assembly:Avalonia.Base
Package:Avalonia

A notifying list.

public interface IAvaloniaList<T>

Implements: IAvaloniaReadOnlyList<>, ICollection<>, IEnumerable<>, IList<>, IReadOnlyCollection<>, IReadOnlyList<>, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged

Methods

NameDescription
AddRangeNo summary available.
InsertRangeNo summary available.
MoveMoves an item to a new index.
MoveRangeMoves multiple items to a new index.
RemoveAllNo summary available.
RemoveRangeRemoves a range of elements from the collection.

AddRange Method

public void AddRange(System.Collections.Generic.IEnumerable<T> items)

Parameters

items System.Collections.Generic.IEnumerable<T>

InsertRange Method

public void InsertRange(int index, System.Collections.Generic.IEnumerable<T> items)

Parameters

index int

items System.Collections.Generic.IEnumerable<T>

Move Method

Moves an item to a new index.

public 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 Method

Moves multiple items to a new index.

public 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 Method

public void RemoveAll(System.Collections.Generic.IEnumerable<T> items)

Parameters

items System.Collections.Generic.IEnumerable<T>

RemoveRange Method

Removes a range of elements from the collection.

public void RemoveRange(int index, int count)

Parameters

index int

The first index to remove.

count int

The number of items to remove.

Properties

NameDescription
CountGets the number of items in the list.
ItemNo summary available.

Count Property

Gets the number of items in the list.

public int Count { get; set; }

Item Property

public T Item { get; set; }