Skip to main content

Motion Standalone Postprocessor C# library 2024 R2

Class ObservableKeyedCollectionBase

Last update: 03.07.2024

Namespace: VM.Collections
Assembly: VM.dll

public abstract class ObservableKeyedCollectionBase<TKey, TItem> : KeyedCollection<TKey, TItem>

Type Parameters

TKey

TItem

Inheritance

objectCollection<TItem>KeyedCollection<TKey, TItem>ObservableKeyedCollectionBase<TKey, TItem>

Constructors

ObservableKeyedCollectionBase()

protected ObservableKeyedCollectionBase()

Methods

<>OnPropertyChanged(PropertyChangedEventArgs)

protected void <>OnPropertyChanged(PropertyChangedEventArgs eventArgs)

Parameters

eventArgs PropertyChangedEventArgs

AddRange(IEnumerable<TItem>)

public void AddRange(IEnumerable<TItem> items)

Parameters

items IEnumerable<TItem>

ClearItems()

protected override void ClearItems()

InsertItem(int, TItem)

protected override void InsertItem(int index, TItem item)

Parameters

index int

item TItem

OnCollectionChanged(NotifyCollectionChangedEventArgs)

protected virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs e)

Parameters

e NotifyCollectionChangedEventArgs

RemoveItem(int)

protected override void RemoveItem(int index)

Parameters

index int

SetItem(int, TItem)

protected override void SetItem(int index, TItem newitem)

Parameters

index int

newitem TItem

TryGetValue(TKey, out TItem)

public bool TryGetValue(TKey key, out TItem item)

Parameters

key TKey

item TItem

Returns

bool

CollectionChanged

public event NotifyCollectionChangedEventHandler CollectionChanged

Event Type

NotifyCollectionChangedEventHandler

PropertyChanged

public event PropertyChangedEventHandler PropertyChanged

Event Type

PropertyChangedEventHandler