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: 66.0.19621.1485 (66.0.19621.1485)
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.
|
![]() | 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
Supported in: 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