Represents a collection of custom nodes.
Inheritance Hierarchy
Node
Spotfire.Dxp.Framework.DocumentModelDocumentNode
Spotfire.Dxp.ApplicationCustomNodes
Namespace: Spotfire.Dxp.Application
Assembly: Spotfire.Dxp.Application (in Spotfire.Dxp.Application.dll) Version: 71.0.22122.5390 (71.0.22122.5390)
Syntax
C#
[SerializableAttribute] [PersistenceVersionAttribute(2, 0)] public sealed class CustomNodes : DocumentNode
The CustomNodes type exposes the following members.
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.) |
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.
| |
| ForEachNodeInSubTreeTNode |
Applies the specified action to all nodes of the specified type in the subtree spanned
from this node, including this node.
(Inherited from DocumentNode.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| Remove | Removes the specified node.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) | |
| TryGetNode(Type, CustomNode) |
Tries to get the CustomNode of the specified type.
| |
| TryGetNodeT(T) |
Tries to get the CustomNode of the specified type.
|
Explicit Interface Implementations
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