Share via


Grouping<TKey,TSubKey,TItem> Class

Definition

Grouping of items by key and subkey into ObservableRange

public class Grouping<TKey,TSubKey,TItem> : Xamarin.CommunityToolkit.ObjectModel.ObservableRangeCollection<TItem>

Type Parameters

TKey
TSubKey
TItem
Inheritance
System.Collections.ObjectModel.ObservableCollection<T>
Grouping<TKey,TSubKey,TItem>

Constructors

Grouping<TKey,TSubKey,TItem>(TKey, TSubKey, IEnumerable<TItem>)

Initializes a new instance of the Grouping class.

Properties

Items

Returns list of items in the grouping.

Key

Gets the key.

SubKey

Gets the subkey of the grouping

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

Applies to