ObservableCollectionT Class |
Namespace: System.Collections.ObjectModel
public class ObservableCollection<T> : Collection<T>, INotifyCollectionChanged, INotifyPropertyChanged
The ObservableCollectionT type exposes the following members.
Name | Description | |
---|---|---|
![]() | ObservableCollectionT |
Initializes a new instance of ObservableCollection.
|
![]() | ObservableCollectionT(IEnumerableT) |
Initializes a new instance of ObservableCollection and copy the collection given as a parameter in it.
|
![]() | ObservableCollectionT(ListT) |
Initializes a new instance of ObservableCollection and copy the list given as a parameter in it.
|
Name | Description | |
---|---|---|
![]() | Add | Adds an object to the end of the CollectionT. (Inherited from CollectionT.) |
![]() | Clear | Removes all elements from the CollectionT. (Inherited from CollectionT.) |
![]() | ClearItems |
Removes all the elements from the ObservableCollection.
(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(Object) | (Inherited from Object.) |
![]() | GetEnumerator | Returns an enumerator that iterates through the CollectionT. (Inherited from CollectionT.) |
![]() | 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 at the given index into the ObservableCollection.
(Overrides CollectionTInsertItem(Int32, T).) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | OnCollectionChanged |
Raises the event to call when the collection has changed.
|
![]() | RaisePropertyChanged |
Raises the event to call when a property is changed.
|
![]() | 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 given index from the ObservableCollection.
(Overrides CollectionTRemoveItem(Int32).) |
![]() | SetItem |
Replaces the element at the given position with the element given as a parameter.
(Overrides CollectionTSetItem(Int32, T).) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
![]() | Count | Gets the number of elements actually contained in the CollectionT. (Inherited from CollectionT.) |
Name | Description | |
---|---|---|
![]() | CollectionChanged |
Occurs when an item is added, removed, changed, moved, or the entire list
is refreshed.
|
![]() | PropertyChanged |
Occurs when a property value changes.
|