FlowchartEdge Class
An edge of a flowchart, from a node or a subgraph to another.
public sealed class FlowchartEdgeConstructors
| Name | Description |
|---|---|
| FlowchartEdge(FlowchartElement, FlowchartElement, DiagramText?) | Initializes a new instance of the FlowchartEdge class. |
FlowchartEdge(FlowchartElement, FlowchartElement, DiagramText?)
FlowchartEdge.csInitializes a new instance of the FlowchartEdge class.
public FlowchartEdge(FlowchartElement source, FlowchartElement target, DiagramText? label = null)Parameters
sourceFlowchartElement- The element the edge starts from.
targetFlowchartElement- The element the edge goes to.
labelDiagramText?- The text of the edge, or
nullfor none.
Properties
| Name | Description |
|---|---|
| CssClasses | Gets the classes of the edge: the names of styles of FlowchartDiagram.ClassDefinitions, also written as CSS classes in the SVG. |
| Curve | Gets or sets the curve of the edge, or null for FlowchartDiagram.Curve. |
| EndArrowHead | Gets or sets the decoration of the end of the edge. The default is FlowchartArrowHead.Arrow. |
| Id | Gets or sets the identifier of the edge, or null (Mermaid e1@-->). |
| Label | Gets or sets the text of the edge, or null for none. |
| Length | 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. |
| LineStyle | Gets or sets the line of the edge. |
| Source | Gets the element the edge starts from. |
| StartArrowHead | Gets or sets the decoration of the start of the edge. |
| Style | Gets or sets the style of the edge (Mermaid linkStyle): DiagramStyle.Stroke, DiagramStyle.StrokeWidth, DiagramStyle.StrokeDashArray, and DiagramStyle.TextColor for the label. |
| Target | Gets the element the edge goes to. |
CssClasses
FlowchartEdge.csGets the classes of the edge: the names of styles of FlowchartDiagram.ClassDefinitions, also written as CSS classes in the SVG.
Property value
Curve
FlowchartEdge.csGets or sets the curve of the edge, or null for FlowchartDiagram.Curve.
public EdgeCurve? Curve { get; set; }Property value
EndArrowHead
FlowchartEdge.csGets or sets the decoration of the end of the edge. The default is FlowchartArrowHead.Arrow.
public FlowchartArrowHead EndArrowHead { get; set; }Property value
Label
FlowchartEdge.csGets or sets the text of the edge, or null for none.
public DiagramText? Label { get; set; }Property value
Length
FlowchartEdge.csGets 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; }LineStyle
FlowchartEdge.csSource
FlowchartEdge.csStartArrowHead
FlowchartEdge.csGets or sets the decoration of the start of the edge.
public FlowchartArrowHead StartArrowHead { get; set; }Property value
Style
FlowchartEdge.csGets 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; }