FlowchartSubgraph Class

A group of nodes of a flowchart, drawn as a frame with a title. Its FlowchartElement.Label is its title.

public sealed class FlowchartSubgraph : FlowchartElement
Inheritance
FlowchartElement FlowchartSubgraph

Constructors

NameDescription
FlowchartSubgraph(string, DiagramText?)Initializes a new instance of the FlowchartSubgraph class.

FlowchartSubgraph(string, DiagramText?)

FlowchartSubgraph.cs

Initializes a new instance of the FlowchartSubgraph class.

public FlowchartSubgraph(string id, DiagramText? title = null)

Parameters

id string
The identifier of the subgraph, unique in the flowchart.
title DiagramText?
The title, or null to show the identifier.

Properties

NameDescription
DirectionGets or sets the direction of the content of the subgraph, or null for the direction of the flowchart. As in Mermaid, it applies only when no edge links a node of the subgraph to a node outside of it.
NodesGets the nodes of the subgraph. A node of several subgraphs belongs to the innermost one.
SubgraphsGets the subgraphs nested in this one.

Gets or sets the direction of the content of the subgraph, or null for the direction of the flowchart. As in Mermaid, it applies only when no edge links a node of the subgraph to a node outside of it.

public DiagramDirection? Direction { get; set; }

Property value

DiagramDirection?

Gets the nodes of the subgraph. A node of several subgraphs belongs to the innermost one.

public IList<FlowchartNode> Nodes { get; }

Property value

IList<FlowchartNode>

Gets the subgraphs nested in this one.

public IList<FlowchartSubgraph> Subgraphs { get; }