FlowchartEdge Class

An edge of a flowchart, from a node or a subgraph to another.

public sealed class FlowchartEdge

Constructors

NameDescription
FlowchartEdge(FlowchartElement, FlowchartElement, DiagramText?)Initializes a new instance of the FlowchartEdge class.

FlowchartEdge(FlowchartElement, FlowchartElement, DiagramText?)

FlowchartEdge.cs

Initializes a new instance of the FlowchartEdge class.

public FlowchartEdge(FlowchartElement source, FlowchartElement target, DiagramText? label = null)

Parameters

source FlowchartElement
The element the edge starts from.
target FlowchartElement
The element the edge goes to.
label DiagramText?
The text of the edge, or null for none.

Properties

NameDescription
CssClassesGets the classes of the edge: the names of styles of FlowchartDiagram.ClassDefinitions, also written as CSS classes in the SVG.
CurveGets or sets the curve of the edge, or null for FlowchartDiagram.Curve.
EndArrowHeadGets or sets the decoration of the end of the edge. The default is FlowchartArrowHead.Arrow.
IdGets or sets the identifier of the edge, or null (Mermaid e1@-->).
LabelGets or sets the text of the edge, or null for none.
LengthGets or sets the minimum number of ranks between the source and the target: an edge of length 2 is twice as long. The default is 1.
LineStyleGets or sets the line of the edge.
SourceGets the element the edge starts from.
StartArrowHeadGets or sets the decoration of the start of the edge.
StyleGets or sets the style of the edge (Mermaid linkStyle): DiagramStyle.Stroke, DiagramStyle.StrokeWidth, DiagramStyle.StrokeDashArray, and DiagramStyle.TextColor for the label.
TargetGets the element the edge goes to.

Gets the classes of the edge: the names of styles of FlowchartDiagram.ClassDefinitions, also written as CSS classes in the SVG.

public IList<string> CssClasses { get; }

Property value

IList<string>

Gets or sets the curve of the edge, or null for FlowchartDiagram.Curve.

public EdgeCurve? Curve { get; set; }

Property value

EdgeCurve?

EndArrowHead

FlowchartEdge.cs

Gets or sets the decoration of the end of the edge. The default is FlowchartArrowHead.Arrow.

public FlowchartArrowHead EndArrowHead { get; set; }

Property value

FlowchartArrowHead

Gets or sets the identifier of the edge, or null (Mermaid e1@-->).

public string? Id { get; set; }

Property value

string?

Gets or sets the text of the edge, or null for none.

public DiagramText? Label { get; set; }

Property value

DiagramText?

Gets or sets the minimum number of ranks between the source and the target: an edge of length 2 is twice as long. The default is 1.

public int Length { get; set; }

Property value

int

Exceptions

ArgumentOutOfRangeException
The value is less than 1 or greater than 100.

Gets or sets the line of the edge.

public FlowchartLineStyle LineStyle { get; set; }

Property value

FlowchartLineStyle

Gets the element the edge starts from.

public FlowchartElement Source { get; }

Property value

FlowchartElement

StartArrowHead

FlowchartEdge.cs

Gets or sets the decoration of the start of the edge.

public FlowchartArrowHead StartArrowHead { get; set; }

Property value

FlowchartArrowHead

Gets or sets the style of the edge (Mermaid linkStyle): DiagramStyle.Stroke, DiagramStyle.StrokeWidth, DiagramStyle.StrokeDashArray, and DiagramStyle.TextColor for the label.

public DiagramStyle? Style { get; set; }

Property value

DiagramStyle?

Gets the element the edge goes to.

public FlowchartElement Target { get; }

Property value

FlowchartElement