Class
NotifiableCollection<T>

Represents a collection of elements that can notify listeners when items are added, removed, or when the whole list is refreshed.

Definition

Namespace:Telerik.Windows.Documents.Utils

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Type Parameters:

T

The type of elements in the collection.

Syntax:

cs-api-definition
public class NotifiableCollection<T> : ObservableCollection<T>, IList<T>, ICollection<T>, IList, ICollection, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged where T : class, INotifyPropertyChanged

Inheritance: objectCollection<T>ObservableCollection<T>NotifiableCollection<T>

Implements: ICollectionICollection<T>IEnumerableIEnumerable<T>IListIList<T>INotifyCollectionChangedINotifyPropertyChangedIReadOnlyCollection<T>IReadOnlyList<T>

Inherited Members ObservableCollection<T>.Move(int, int)ObservableCollection<T>.MoveItem(int, int)ObservableCollection<T>.OnPropertyChanged(PropertyChangedEventArgs)ObservableCollection<T>.OnCollectionChanged(NotifyCollectionChangedEventArgs)ObservableCollection<T>.BlockReentrancy()ObservableCollection<T>.CheckReentrancy()ObservableCollection<T>.CollectionChangedObservableCollection<T>.PropertyChangedCollection<T>.Add(T)Collection<T>.Clear()Collection<T>.CopyTo(T[], int)Collection<T>.Contains(T)Collection<T>.GetEnumerator()Collection<T>.IndexOf(T)Collection<T>.Insert(int, T)Collection<T>.Remove(T)Collection<T>.RemoveAt(int)Collection<T>.CountCollection<T>.ItemsCollection<T>.this[int]

Constructors

NotifiableCollection()

Declaration

cs-api-definition
public NotifiableCollection()

NotifiableCollection(IEnumerable<T>)

Declaration

cs-api-definition
public NotifiableCollection(IEnumerable<T> items)

Parameters

items

IEnumerable<T>

Methods

ClearItems()

Declaration

cs-api-definition
protected override void ClearItems()

Overrides ObservableCollection<T>.ClearItems()

InsertItem(int, T)

Declaration

cs-api-definition
protected override void InsertItem(int index, T item)

Parameters

index

int

item

T

Overrides ObservableCollection<T>.InsertItem(int, T)

RemoveItem(int)

Declaration

cs-api-definition
protected override void RemoveItem(int index)

Parameters

index

int

Overrides ObservableCollection<T>.RemoveItem(int)

SetItem(int, T)

Declaration

cs-api-definition
protected override void SetItem(int index, T item)

Parameters

index

int

item

T

Overrides ObservableCollection<T>.SetItem(int, T)

Events

ItemAdded

Declaration

cs-api-definition
public event EventHandler<NotifyCollectionItemAddedEventArgs> ItemAdded

Event Value

EventHandler<NotifyCollectionItemAddedEventArgs>

ItemChanged

Declaration

cs-api-definition
public event EventHandler<NotifyCollectionChangeEventArgs> ItemChanged

Event Value

EventHandler<NotifyCollectionChangeEventArgs>