NotifyingCollectionT Class |
Namespace: DigitalRune.Collections
The NotifyingCollectionT type exposes the following members.
Name | Description | |
---|---|---|
NotifyingCollectionT |
Initializes a new instance of the NotifyingCollectionT class.
| |
NotifyingCollectionT(Boolean, Boolean) |
Initializes a new instance of the NotifyingCollectionT class with the given
settings.
|
Name | Description | |
---|---|---|
Add | Adds an object to the end of the CollectionT. (Inherited from CollectionT.) | |
AddRange |
Adds the elements of the specified collection to the end of the
NotifyingCollectionT.
| |
Clear | Removes all elements from the CollectionT. (Inherited from CollectionT.) | |
ClearItems |
Removes all elements from the CollectionT.
(Overrides CollectionTClearItems.) | |
Contains | Determines whether an element is in the CollectionT. (Inherited from CollectionT.) | |
CopyTo | Copies the entire CollectionT to a compatible one-dimensional Array, starting at the specified index of the target array. (Inherited from CollectionT.) | |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetEnumerator |
Returns an enumerator that iterates through the NotifyingCollectionT.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IndexOf | Searches for the specified object and returns the zero-based index of the first occurrence within the entire CollectionT. (Inherited from CollectionT.) | |
Insert | Inserts an element into the CollectionT at the specified index. (Inherited from CollectionT.) | |
InsertItem |
Inserts an element into the CollectionT at the specified index.
(Overrides CollectionTInsertItem(Int32, T).) | |
InsertRange |
Inserts the elements of a collection into the NotifyingCollectionT at the
specified index.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Move |
Moves the item at the specified index to a new location in the collection.
| |
MoveItem |
Moves the item at the specified index to a new location in the collection.
| |
OnCollectionChanged |
Raises the CollectionChanged event.
| |
Remove | Removes the first occurrence of a specific object from the CollectionT. (Inherited from CollectionT.) | |
RemoveAt | Removes the element at the specified index of the CollectionT. (Inherited from CollectionT.) | |
RemoveItem |
Removes the element at the specified index of the CollectionT.
(Overrides CollectionTRemoveItem(Int32).) | |
RemoveRange |
Removes a range of elements from the NotifyingCollectionT.
| |
SetItem |
Replaces the element at the specified index.
(Overrides CollectionTSetItem(Int32, T).) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
AllowDuplicates |
Gets or sets a value indicating whether duplicate items are allowed in the collection.
| |
AllowNull |
Gets or sets a value indicating whether items are allowed in the
collection.
| |
Count | Gets the number of elements actually contained in the CollectionT. (Inherited from CollectionT.) | |
Item | Gets or sets the element at the specified index. (Inherited from CollectionT.) | |
Items | Gets a IListT wrapper around the CollectionT. (Inherited from CollectionT.) |
Name | Description | |
---|---|---|
CollectionChanged |
Occurs when items were added, replaced or removed.
|
Name | Description | |
---|---|---|
IListAdd | Adds an item to the IList. (Inherited from CollectionT.) | |
IListContains | Determines whether the IList contains a specific value. (Inherited from CollectionT.) | |
ICollectionCopyTo | (Inherited from CollectionT.) | |
IEnumerableGetEnumerator | Returns an enumerator that iterates through a collection. (Inherited from CollectionT.) | |
IListIndexOf | Determines the index of a specific item in the IList. (Inherited from CollectionT.) | |
IListInsert | Inserts an item into the IList at the specified index. (Inherited from CollectionT.) | |
IListIsFixedSize | Gets a value indicating whether the IList has a fixed size. (Inherited from CollectionT.) | |
ICollectionTIsReadOnly | Gets a value indicating whether the ICollectionT is read-only. (Inherited from CollectionT.) | |
IListIsReadOnly | Gets a value indicating whether the IList is read-only. (Inherited from CollectionT.) | |
ICollectionIsSynchronized | Gets a value indicating whether access to the ICollection is synchronized (thread safe). (Inherited from CollectionT.) | |
IListItem | Gets or sets the element at the specified index. (Inherited from CollectionT.) | |
IListRemove | Removes the first occurrence of a specific object from the IList. (Inherited from CollectionT.) | |
ICollectionSyncRoot | Gets an object that can be used to synchronize access to the ICollection. (Inherited from CollectionT.) |
This collection is similar to the ObservableCollection{T} in the .NET Framework. (In .NET 3.5 the ObservableCollection{T} is located in the WindowsBase.dll. Therefore it is not usable in non-WPF applications. This has been solved in .NET 4.0 where the class was moved into the System.dll.)