Click or drag to resize

AtalaObservableDictionary<TKey, TValue> Class

Represents an observable collection of keys and values.
Inheritance Hierarchy
System.Object
  Atalasoft.Imaging.Wpf.AtalaObservableDictionary<TKey, TValue>

Namespace:  Atalasoft.Imaging.Wpf
Assembly:  Atalasoft.dotImage.Wpf (in Atalasoft.dotImage.Wpf.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public class AtalaObservableDictionary<TKey, TValue> : IDictionary<TKey, TValue>, 
	ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, 
	IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged

Type Parameters

TKey
The type of the keys in the dictionary.
TValue
The type of the values in the dictionary.

The AtalaObservableDictionary<TKey, TValue> type exposes the following members.

Constructors
  NameDescription
Public methodAtalaObservableDictionary<TKey, TValue>()
Initializes a new instance of the AtalaObservableDictionary<TKey, TValue> class that is empty, has the default initial capacity, and uses the default equality comparer for the key type.
Public methodAtalaObservableDictionary<TKey, TValue>(IDictionary<TKey, TValue>)
Initializes a new instance of the AtalaObservableDictionary<TKey, TValue> class that contains elements copied from the specified IDictionary<TKey, TValue> and uses the default equality comparer for the key type.
Public methodAtalaObservableDictionary<TKey, TValue>(IEqualityComparer<TKey>)
Initializes a new instance of the AtalaObservableDictionary<TKey, TValue> class that is empty, has the default initial capacity, and uses the specified IEqualityComparer<T>.
Public methodAtalaObservableDictionary<TKey, TValue>(Int32)
Initializes a new instance of the AtalaObservableDictionary<TKey, TValue> class that is empty, has the specified initial capacity, and uses the default equality comparer for the key type.
Public methodAtalaObservableDictionary<TKey, TValue>(IDictionary<TKey, TValue>, IEqualityComparer<TKey>)
Initializes a new instance of the AtalaObservableDictionary<TKey, TValue> class that contains elements copied from the specified IDictionary<TKey, TValue> and uses the specified IEqualityComparer<T>.
Public methodAtalaObservableDictionary<TKey, TValue>(Int32, IEqualityComparer<TKey>)
Initializes a new instance of the AtalaObservableDictionary<TKey, TValue> class that is empty, has the specified initial capacity, and uses the specified IEqualityComparer<T>.
Top
Properties
  NameDescription
Public propertyCount
Gets the number of elements contained in the ICollection<T>.
Public propertyIsReadOnly
Gets a value indicating whether the ICollection<T> is read-only.
Public propertyItem
Gets or sets the element with the specified key.
Public propertyKeys
Gets an ICollection<T> containing the keys of the IDictionary<TKey, TValue>.
Public propertyValues
Gets an ICollection<T> containing the values in the IDictionary<TKey, TValue>.
Top
Methods
  NameDescription
Public methodAdd(KeyValuePair<TKey, TValue>)
Adds an item to the ICollection<T>.
Public methodAdd(TKey, TValue)
Adds an element with the provided key and value to the IDictionary<TKey, TValue>.
Public methodClear
Removes all items from the ICollection<T>.
Public methodContains
Determines whether the ICollection<T> contains a specific value.
Public methodContainsKey
Determines whether the IDictionary<TKey, TValue> contains an element with the specified key.
Public methodCopyTo
Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnCollectionChanged
Fires a CollectionChanged event with specified args.
Protected methodOnPropertyChanged
Fires a PropertyChanged event.
Public methodRemove(KeyValuePair<TKey, TValue>)
Removes the first occurrence of a specific object from the ICollection<T>.
Public methodRemove(TKey)
Removes the element with the specified key from the IDictionary<TKey, TValue>.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryGetValue
Gets the value associated with the specified key.
Top
Events
  NameDescription
Public eventCollectionChanged
Occurs when the collection changes.
Public eventPropertyChanged
Occurs when a property value changes.
Top
See Also