| ObservableDictionaryTKey, TValue Class |
Namespace: Sdl.FileTypeSupport.Framework.Core.Settings
[SerializableAttribute] public class ObservableDictionary<TKey, TValue> : IDictionary<TKey, TValue>, ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged, ISerializable
The ObservableDictionaryTKey, TValue type exposes the following members.
| Name | Description | |
|---|---|---|
| ObservableDictionaryTKey, TValue |
Default constructor creating a new dictionary with the default capacity.
| |
| ObservableDictionaryTKey, TValue(Int32) |
Constructor creating a new dictionary with the specified capacity.
| |
| ObservableDictionaryTKey, TValue(SerializationInfo, StreamingContext) |
Creates a new dictionary based on the serialization information provided.
|
| Name | Description | |
|---|---|---|
| Count |
The number of elements contained in the dictionary.
| |
| IsReadOnly |
Determines whether the dictionary is read-only.
| |
| Item |
Retrieves the dictionary element value at the specified key.
| |
| Keys |
A collection of all element keys contained in the dictionary.
| |
| Values |
A collection of all element values contained in the dictionary.
|
| Name | Description | |
|---|---|---|
| Add(KeyValuePairTKey, TValue) |
Adds a new element to the dictionary.
| |
| Add(TKey, TValue) |
Adds an element with the key and value to the dictionary or updates the value
if the key already exists.
| |
| Clear |
Removes all elements from the dictionary.
| |
| ClearDictionaryItemSettings |
Removes all saved items belonging to this dictionary from the stored settings group. This is
called from SaveToSettingsGroup(ISettingsGroup, String) to make sure that the settings being updated
are all saved cleanly.
| |
| Contains |
Determines whether the dictionary contains the specified item.
| |
| ContainsKey |
Determines whether the dictionary contains an element with the specified key.
| |
| CopyTo |
Copies the dictionary elements into the provided array, starting
from the specified index in the array.
| |
| GetDictionaryItemFromSettingsT |
Gets the setting for the dictionary item from the settings group and populates it.
| |
| GetEnumerator |
Returns an enumerator that iterates through the collection.
| |
| GetObjectData |
Populates serialization information with the elements in the dictionary.
| |
| PopulateFromSettingsGroup |
Restores the dictionary from the settings group and populates itself using the setting ID as its base.
| |
| Remove(KeyValuePairTKey, TValue) |
Removes the specified item from the dictionary.
| |
| Remove(TKey) |
Removes the element with the specified key from the dictionary.
| |
| SaveToSettingsGroup |
Saves this dictionary to the settings group using the setting ID as a base.
| |
| TryGetValue |
Gets the value of the element with the specified key if it
exists.
|
| Name | Description | |
|---|---|---|
| CollectionChanged |
Event that is fired whenever the contents of the collection are changed.
| |
| PropertyChanged |
Event that is fired whenever the value of a property of the collection is changed.
|