Create context nodes to organize and contain block nodes in the graph tool.
Context nodes provide context-specific information or functionality and contain only block nodes. A context node inherits all features available in its parent Node class.
This page covers how to implement context nodes only. For information on how to implement block nodes, refer to Implement block nodes for your graph tool. For information about node types, refer to About nodes.
Before you can implement context nodes, you need to create a graph class. If you haven’t done this yet, follow the instructions in Implement a graph tool.
To implement a context node, define a class that inherits from the ContextNode base class:
[Serializable]
public class MyContextNode : ContextNode
{
}
Review Implement a node to learn how to customize the node with node options, ports, and orientation settings.