[]
Represents a dynamic data collection class, which is a base class for access collection data.
public class NotifyCollection<T> : Collection<T>, IList<T>, ICollection<T>, IList, ICollection, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, INotifyCollectionChanged
Public Class NotifyCollection(Of T)
Inherits Collection(Of T)
Implements IList(Of T), ICollection(Of T), IList, ICollection, IReadOnlyList(Of T), IReadOnlyCollection(Of T), IEnumerable(Of T), IEnumerable, INotifyCollectionChanged
Name | Description |
---|---|
T | The type of elements in collection. |
Name | Description |
---|---|
NotifyCollection() | Initializes a new instance of the NotifyCollection<T> class. |
NotifyCollection(IEnumerable<T>) | Initializes a new instance of the NotifyCollection<T> class containing the elements of the specified enumerable source. |
Name | Description |
---|---|
AddRange(IEnumerable<T>) | Adds the contents of another IList<T> to the end of the collection. |
AddRange(T[]) | Copies the elements of the specified array to the end of the collection. |
ClearItems() | Removes all items from the collection. |
InsertItem(int, T) | Inserts an item into the collection at the specified index. |
InsertItems(int, IEnumerable<T>) | Inserts some items into the collection at the specified index. |
OnCollectionChanged(NotifyCollectionChangedEventArgs) | Raises the CollectionChanged event with the provided arguments. |
RemoveItem(int) | Removes the item at the specified index of the collection. |
SetItem(int, T) | Replaces the element at the specified index. |
Name | Description |
---|---|
CollectionChanged | Occurs when an item is added, removed, changed, moved, or the entire list is refreshed. |