Skip to main content

IAvaloniaDictionary<TKey, TValue> Methods

Methods

Add(T)Adds an item to the ICollection(T).
(Inherited from ICollection(KeyValuePair(TKey, TValue)))
Add(TKey, TValue)Adds an element with the provided key and value to the IDictionary(TKey, TValue).
(Inherited from IDictionary(TKey, TValue))
Add(Object, Object)Adds an element with the provided key and value to the IDictionary object.
(Inherited from IDictionary)
Clear()Removes all items from the ICollection(T).
(Inherited from ICollection(KeyValuePair(TKey, TValue)))
Contains(T)Determines whether the ICollection(T) contains a specific value.
(Inherited from ICollection(KeyValuePair(TKey, TValue)))
Contains(Object)Determines whether the IDictionary object contains an element with the specified key.
(Inherited from IDictionary)
ContainsKey(TKey)Determines whether the IDictionary(TKey, TValue) contains an element with the specified key.
(Inherited from IDictionary(TKey, 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 ICollection(T) to an Array, starting at a particular Array index.
(Inherited from ICollection(KeyValuePair(TKey, TValue)))
GetEnumerator()Returns an enumerator that iterates through the collection.
(Inherited from IEnumerable(KeyValuePair(TKey, TValue)))
Remove(TKey)Removes the element with the specified key from the IDictionary(TKey, TValue).
(Inherited from IDictionary(TKey, TValue))
Remove(T)Removes the first occurrence of a specific object from the ICollection(T).
(Inherited from ICollection(KeyValuePair(TKey, 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 IDictionary(TKey, TValue))

Extension Methods

GetWeakCollectionChangedObservable()Gets a weak observable for the CollectionChanged event.
(Defined by NotifyCollectionChangedExtensions)
WeakSubscribe(Action(NotifyCollectionChangedEventArgs))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

Reference

IAvaloniaDictionary(TKey, TValue) Interface
Avalonia.Collections Namespace