Represents a collection of custom nodes.
Inheritance Hierarchy
Spotfire.Dxp.Framework.DocumentModelNode
Spotfire.Dxp.Framework.DocumentModelDocumentNode
Spotfire.Dxp.ApplicationCustomNodes
Namespace: Spotfire.Dxp.Application
Assembly: Spotfire.Dxp.Application (in Spotfire.Dxp.Application.dll) Version: 30.0.11525.4184 (30.0.11525.4184)
Syntax
C#
[SerializableAttribute] [PersistenceVersionAttribute(2, 0)] public sealed class CustomNodes : DocumentNode
The CustomNodes type exposes the following members.
Methods
Name | Description | |
---|---|---|
Add | Adds the specified node.
| |
AddNewIfNeededT | Adds a new node of the specified type if required.
If a node of the specified type is already present in the collection,
it is returned and nothing is added.
| |
Contains(Type) |
Determines whether a CustomNode of the specified type exists in this collection.
| |
Contains(CustomNode) |
Determines whether the specified CustomNode exists in this the collection.
| |
ContainsT |
Determines whether a CustomNode of the specified type exists in this collection.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Remove | Removes the specified node.
| |
TryGetNode(Type, CustomNode) |
Tries to get the CustomNode of the specified type.
| |
TryGetNodeT(T) |
Tries to get the CustomNode of the specified type.
|
Properties
Name | Description | |
---|---|---|
Context |
Gets the context of this node.
(Inherited from DocumentNode.) | |
IsAttached |
Gets a value indicating whether this node is attached.
(Inherited from DocumentNode.) | |
Transactions |
Gets a collection of methods for executing transactions on the document.
(Inherited from DocumentNode.) |
Explicit Interface Implementations
Name | Description | |
---|---|---|
IServiceProviderGetService |
Implements IServiceProvider.
(Inherited from Node.) | |
INodeContextGetAncestorT |
Implements GetAncestorT.
(Inherited from DocumentNode.) | |
INodeContextGetServiceT |
Implements GetServiceT.
(Inherited from DocumentNode.) | |
INodeContextIsDescendantOf |
Implements IsDescendantOf(DocumentNode).
(Inherited from DocumentNode.) | |
ITransactionsBeginAggregatedTransaction |
Implements BeginAggregatedTransaction.
(Inherited from DocumentNode.) | |
ITransactionsExecuteInvisibleTransaction |
Implements ExecuteInvisibleTransaction(Executor).
(Inherited from DocumentNode.) | |
ITransactionsExecuteStickyTransaction |
Implements ExecuteStickyTransaction(Guid, Executor).
(Inherited from DocumentNode.) | |
ITransactionsExecuteTransaction |
Implements ExecuteTransaction(Executor).
(Inherited from DocumentNode.) |
Remarks
Derive MyNode from DocumentNode instead of CustomNode. Then create a class MyNodeCollection that derives from CustomNode. Add a collection structure to MyNodeCollection (typically an UndoableList) that can hold instances of MyNode. Then simply add a single MyNodeCollection instance to the CustomNodeCollection.
Version Information
See Also