A dictionary where all operations are undoable.
Inheritance Hierarchy
Node
UndoableNodeBase
UndoableNode
UndoableCollectionNode
Spotfire.Dxp.Framework.DocumentModel.UndoableDictionary<TKey, TValue>
Namespace: Spotfire.Dxp.Framework.DocumentModel
Assembly: Spotfire.Dxp.Framework (in Spotfire.Dxp.Framework.dll) Version: 67.0.20819.4186 (67.0.20819.4186)
Syntax
C#
[SerializableAttribute] [PersistenceVersionAttribute(2, 0)] public sealed class UndoableDictionary<TKey, TValue> : UndoableCollectionNode, IDictionary<TKey, TValue>, ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable
Type Parameters
- TKey
- TValue
The UndoableDictionary<TKey, TValue> type exposes the following members.
Properties
Name | Description | |
---|---|---|
![]() | Count |
Gets the number of elements contained in the ICollection<T>.
|
![]() | IsReadOnly |
Gets a value indicating whether the ICollection<T> is read-only.
|
![]() | Item |
Gets or sets the TValue with the specified key.
|
![]() | Keys |
Gets an ICollection<T> containing the keys of the IDictionary<TKey, TValue>.
|
![]() | Values |
Gets an ICollection<T> containing the values in the IDictionary<TKey, TValue>.
|
Methods
Name | Description | |
---|---|---|
![]() | Add(KeyValuePair<TKey, TValue>) |
Adds an item to the ICollection<T>.
|
![]() | Add(TKey, TValue) |
Adds an element with the provided key and value to the IDictionary<TKey, TValue>.
|
![]() | Clear |
Removes all items from the ICollection<T>.
|
![]() | Contains |
Determines whether the ICollection<T> contains a specific value.
|
![]() | ContainsKey |
Determines whether the IDictionary<TKey, TValue> contains an element with the specified key.
|
![]() | CopyTo |
Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.
|
![]() | GetEnumerator |
Returns an enumerator that iterates through the collection.
|
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | Remove(KeyValuePair<TKey, TValue>) |
Removes the first occurrence of a specific object from the ICollection<T>.
|
![]() | Remove(TKey) |
Removes the element with the specified key from the IDictionary<TKey, TValue>.
|
![]() | ReplaceAll | Replaces the contents of this instance with the elements in the
specified collection.
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | TryGetValue |
Tries to get the value associated with the specified key, returning true upon success.
|
Explicit Interface Implementations
Name | Description | |
---|---|---|
![]() ![]() | IEnumerable.GetEnumerator |
Returns an enumerator that iterates through a collection.
|
Remarks
Version Information
Supported in: 14.5, 14.4, 14.3, 14.2, 14.1, 14.0, 12.5, 12.4, 12.3, 12.2, 12.1, 12.0, 11.8
See Also