ObservableGroupedCollectionExtensions.RemoveGroup<TKey,TValue> Method
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.
Remove the first occurrence of the group with key
from the source
grouped collection.
It will not do anything if the group does not exist.
public static void RemoveGroup<TKey,TValue> (this CommunityToolkit.Common.Collections.ObservableGroupedCollection<TKey,TValue> source, TKey key);
static member RemoveGroup : CommunityToolkit.Common.Collections.ObservableGroupedCollection<'Key, 'Value> * 'Key -> unit
<Extension()>
Public Sub RemoveGroup(Of TKey, TValue) (source As ObservableGroupedCollection(Of TKey, TValue), key As TKey)
Type Parameters
- TKey
The type of the group key.
- TValue
The type of the items in the collection.
Parameters
The source ObservableGroupedCollection<TKey,TValue> instance.
- key
- TKey
The key of the group to remove.