An undoable collection of document nodes that behaves like a hybrid between a list and a dictionary.
Inheritance Hierarchy
Spotfire.Dxp.Framework.DocumentModelNode
Spotfire.Dxp.Framework.DocumentModelUndoableNodeBase
UndoableNode
UndoableCollectionNode
Spotfire.Dxp.Framework.DocumentModelUndoableKeyedCollectionTKey, TNode
Namespace: Spotfire.Dxp.Framework.DocumentModel
Assembly: Spotfire.Dxp.Framework (in Spotfire.Dxp.Framework.dll) Version: 30.0.10915.3380 (30.0.10915.3380)
Syntax
C#
[SerializableAttribute] public class UndoableKeyedCollection<TKey, TNode> : UndoableCollectionNode, IList<TNode>, ICollection<TNode>, IEnumerable<TNode>, IEnumerable where TNode : DocumentNode
Type Parameters
- TKey
- The type of key held by the nodes in the collection.
- TNode
- The type of the nodes in the collection.
The UndoableKeyedCollectionTKey, TNode type exposes the following members.
Methods
Name | Description | |
---|---|---|
Add |
Adds an item to the ICollectionT.
| |
AddRange |
Adds the elements of the specified collection to the end of this instance.
| |
AsReadOnly |
Returns a read-only IListT containing the elements in this collection.
| |
Clear |
Removes all items from the ICollectionT.
| |
Contains |
Determines whether the ICollectionT contains a specific value.
| |
ContainsKey |
Determines whether the specified key contains key.
| |
CopyTo |
Copies the elements of the ICollectionT to an Array, starting at a particular Array index.
| |
Exists |
Determines whether the List contains elements that match the
conditions defined by the specified predicate.
| |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
Find |
Searches for an element that matches the conditions defined
by the specified predicate, and returns the first occurrence within the collection.
| |
FindAll |
Retrieves the all the elements that match the conditions defined by the specified predicate.
| |
GetEnumerator |
Returns an enumerator that iterates through the collection.
| |
GetService | Override this method to provide services accessible
from this node and its descendants.
If you can not provide the requested service, you should call
base.GetService which relays the request to the owner
or to the AnalysisApplication if no owner is set.
(Inherited from Node.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IndexOf |
Determines the index of a specific item in the IListT.
| |
Insert |
Inserts an item to the IListT at the specified index.
| |
InsertRange |
Inserts the elements of the specified collection at
the specified index.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Remove(TKey) |
Removes the element with the specified key, returning true if this instance contained
an element with the specified key prior to the removal.
| |
Remove(TNode) |
Removes the first occurrence of a specific object from the ICollectionT.
| |
RemoveAll | Removes all elements that match the conditions defined by the specified predicate.
| |
RemoveAt |
Removes the IListT item at the specified index.
| |
RemoveRange |
Remove count elements starting at position
index. If count is zero, no
elements are removed and no event is raised.
| |
ReplaceAll | Replaces the contents of this instance with the elements in the
specified collection.
| |
Sort |
Sorts the elements in this collection using the default comparer.
| |
Sort(IComparerTNode) |
Sorts the elements in this collection using the specified comparer.
| |
Sort(ComparisonTNode) |
Sorts the elements in this collection using the specified System.Comparison.
| |
Sort(Int32, Int32, IComparerTNode) |
Sorts the elements in a range of collection using the specified comparer.
| |
ToArray | Copies the elements of this collection to a new array.
| |
ToCollection |
Copies the elements of the UndoableKeyedCollection to a Collection
| |
TryGetValue |
Tries to get the element associated with the specified key, returning true upon success.
|
Properties
Name | Description | |
---|---|---|
Count |
Gets the number of elements contained in the ICollectionT.
| |
ItemInt32 |
Gets or sets the TNode at the specified index.
| |
ItemTKey |
Gets the element with the specified key.
|
Explicit Interface Implementations
Name | Description | |
---|---|---|
IEnumerableGetEnumerator |
Returns an enumerator that iterates through a collection.
| |
IServiceProviderGetService |
Implements IServiceProvider.
(Inherited from Node.) | |
ICollectionTNodeIsReadOnly |
Gets a value indicating whether the ICollectionT is read-only.
|
Remarks
Version Information
See Also