| Parameter | Description |
|---|---|
| graphID | The authoring graph's ID, accessible through Graph.ID. For subgraphs, use the root graph ID. |
Context The newly created Context, registered with the Registry and associated with the provided . Use it to apply visualization data to nodes in that graph.
Creates and registers a new visualization context.
The authoring graph's ID is used to associate the visualization context with a specific graph. For subgraphs, using the root graph ID associates the context with the entire graph hierarchy. A unique identifier for the context is accessible through Context.VisualizationContextID. Dispose of the returned Context when it is no longer needed. Throws an ArgumentException when the provided graph ID is not valid.
using Context context = Registry.CreateVisualizationContext(graphGuid); NodeReference nodeRef = context.GetNodeReference(nodeID); nodeRef.FillAmount = 50f;