ObservableRangeCollection<T> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a dynamic data collection that provides notifications when items get added, removed, or when the whole list is refreshed.
public class ObservableRangeCollection<T> : System.Collections.ObjectModel.ObservableCollection<T>
Type Parameters
- T
- Inheritance
-
System.Collections.ObjectModel.ObservableCollection<T>ObservableRangeCollection<T>
- Derived
Constructors
| ObservableRangeCollection<T>() |
Initializes a new instance of the System.Collections.ObjectModel.ObservableCollection(Of T) class. |
| ObservableRangeCollection<T>(IEnumerable<T>) |
Initializes a new instance of the System.Collections.ObjectModel.ObservableCollection(Of T) class that contains elements copied from the specified collection. |
Methods
| AddRange(IEnumerable<T>, NotifyCollectionChangedAction) |
Adds the elements of the specified collection to the end of the ObservableCollection(Of T). |
| RemoveRange(IEnumerable<T>, NotifyCollectionChangedAction) |
Removes the first occurence of each item in the specified collection from ObservableCollection(Of T). NOTE: with notificationMode = Remove, removed items starting index is not set because items are not guaranteed to be consecutive. |
| Replace(T) |
Clears the current collection and replaces it with the specified item. |
| ReplaceRange(IEnumerable<T>) |
Clears the current collection and replaces it with the specified collection. |
Extension Methods
| Add<T>(ObservableRangeCollection<T>, IEnumerable<T>) |
To be used in collection initializer |