Grouping<TKey,TItem> 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.
Grouping of items by key into ObservableRange
public class Grouping<TKey,TItem> : Xamarin.CommunityToolkit.ObjectModel.ObservableRangeCollection<TItem>
Type Parameters
- TKey
- TItem
- Inheritance
-
System.Collections.ObjectModel.ObservableCollection<T>ObservableRangeCollection<TItem>Grouping<TKey,TItem>
Constructors
| Grouping<TKey,TItem>(TKey, IEnumerable<TItem>) |
Initializes a new instance of the Grouping class. |
Properties
| Items |
Returns list of items in the grouping. |
| Key |
Gets the key. |
Methods
| AddRange(IEnumerable<T>, NotifyCollectionChangedAction) |
Adds the elements of the specified collection to the end of the ObservableCollection(Of T). (Inherited from ObservableRangeCollection<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. (Inherited from ObservableRangeCollection<T>) |
| Replace(T) |
Clears the current collection and replaces it with the specified item. (Inherited from ObservableRangeCollection<T>) |
| ReplaceRange(IEnumerable<T>) |
Clears the current collection and replaces it with the specified collection. (Inherited from ObservableRangeCollection<T>) |
Extension Methods
| Add<T>(ObservableRangeCollection<T>, IEnumerable<T>) |
To be used in collection initializer |