IAvaloniaDictionaryTKey, TValue Interface

Definition

Namespace: Avalonia.Collections
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public interface IAvaloniaDictionary<TKey, TValue> : IDictionary<TKey, TValue>, 
	ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, 
	IEnumerable, IAvaloniaReadOnlyDictionary<TKey, TValue>, IReadOnlyDictionary<TKey, TValue>, 
	IReadOnlyCollection<KeyValuePair<TKey, TValue>>, INotifyCollectionChanged, INotifyPropertyChanged, 
	IDictionary, ICollection
Implements
IAvaloniaReadOnlyDictionaryTKey, TValue, ICollectionKeyValuePairTKey, TValue, IDictionaryTKey, TValue, IEnumerableKeyValuePairTKey, TValue, IReadOnlyCollectionKeyValuePairTKey, TValue, IReadOnlyDictionaryTKey, TValue, ICollection, IDictionary, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged

Type Parameters

TKey
TValue

Properties

CountGets the number of elements contained in the ICollectionT.
(Inherited from ICollectionKeyValuePairTKey, TValue)
IsFixedSizeGets a value indicating whether the IDictionary object has a fixed size.
(Inherited from IDictionary)
IsReadOnlyGets a value indicating whether the ICollectionT is read-only.
(Inherited from ICollectionKeyValuePairTKey, TValue)
IsSynchronizedGets a value indicating whether access to the ICollection is synchronized (thread safe).
(Inherited from ICollection)
ItemTKeyGets or sets the element with the specified key.
(Inherited from IDictionaryTKey, TValue)
ItemObjectGets or sets the element with the specified key.
(Inherited from IDictionary)
KeysGets an ICollectionT containing the keys of the IDictionaryTKey, TValue.
(Inherited from IDictionaryTKey, TValue)
SyncRootGets an object that can be used to synchronize access to the ICollection.
(Inherited from ICollection)
ValuesGets an ICollectionT containing the values in the IDictionaryTKey, TValue.
(Inherited from IDictionaryTKey, TValue)

Methods

Add(T)Adds an item to the ICollectionT.
(Inherited from ICollectionKeyValuePairTKey, TValue)
Add(TKey, TValue)Adds an element with the provided key and value to the IDictionaryTKey, TValue.
(Inherited from IDictionaryTKey, TValue)
Add(Object, Object)Adds an element with the provided key and value to the IDictionary object.
(Inherited from IDictionary)
ClearRemoves all items from the ICollectionT.
(Inherited from ICollectionKeyValuePairTKey, TValue)
Contains(T)Determines whether the ICollectionT contains a specific value.
(Inherited from ICollectionKeyValuePairTKey, TValue)
Contains(Object)Determines whether the IDictionary object contains an element with the specified key.
(Inherited from IDictionary)
ContainsKey(TKey)Determines whether the IDictionaryTKey, TValue contains an element with the specified key.
(Inherited from IDictionaryTKey, TValue)
CopyTo(Array, Int32)Copies the elements of the ICollection to an Array, starting at a particular Array index.
(Inherited from ICollection)
CopyTo(T, Int32)Copies the elements of the ICollectionT to an Array, starting at a particular Array index.
(Inherited from ICollectionKeyValuePairTKey, TValue)
GetEnumeratorReturns an enumerator that iterates through the collection.
(Inherited from IEnumerableKeyValuePairTKey, TValue)
Remove(TKey)Removes the element with the specified key from the IDictionaryTKey, TValue.
(Inherited from IDictionaryTKey, TValue)
Remove(T)Removes the first occurrence of a specific object from the ICollectionT.
(Inherited from ICollectionKeyValuePairTKey, TValue)
Remove(Object)Removes the element with the specified key from the IDictionary object.
(Inherited from IDictionary)
TryGetValue(TKey, TValue)Gets the value associated with the specified key.
(Inherited from IDictionaryTKey, TValue)

Events

CollectionChangedOccurs when the collection changes.
(Inherited from INotifyCollectionChanged)
PropertyChangedOccurs when a property value changes.
(Inherited from INotifyPropertyChanged)

Extension Methods

GetWeakCollectionChangedObservable Gets a weak observable for the CollectionChanged event.
(Defined by NotifyCollectionChangedExtensions)
WeakSubscribe(ActionNotifyCollectionChangedEventArgs) Subscribes to the CollectionChanged event using a weak subscription.
(Defined by NotifyCollectionChangedExtensions)
WeakSubscribe(NotifyCollectionChangedEventHandler) Subscribes to the CollectionChanged event using a weak subscription.
(Defined by NotifyCollectionChangedExtensions)

See Also