Partager via


ObservableList<T> Class

Definition

An ObservableCollection<T> with added support for range operations.

public class ObservableList<T> : System.Collections.ObjectModel.ObservableCollection<T>
type ObservableList<'T> = class
    inherit ObservableCollection<'T>
Public Class ObservableList(Of T)
Inherits ObservableCollection(Of T)

Type Parameters

T
Inheritance
ObservableList<T>

Constructors

ObservableList<T>()

Initializes a new instance of the ObservableList<T> class.

ObservableList<T>(IEnumerable<T>)

Initializes a new instance of the ObservableList<T> class.

ObservableList<T>(List<T>)

Initializes a new instance of the ObservableList<T> class.

Methods

AddRange(IEnumerable<T>)

Adds the elements of the specified collection to the end of the List<T>.

AddRange(IList<T>)

Adds the elements of the specified collection to the end of the List<T>.

InsertRange(Int32, IEnumerable<T>)

Inserts the elements of a collection into the List<T> at the specified index.

InsertRange(Int32, IList<T>)

Inserts the elements of a collection into the List<T> at the specified index.

RemoveRange(Int32, Int32)

Removes a range of elements from the List<T>.

Applies to