WardleyLink Class

A link of a Wardley map: a dependency of a component on another one, or a flow between them.

public sealed class WardleyLink

Constructors

NameDescription
WardleyLink(string, string)Initializes a new instance of the WardleyLink class.

WardleyLink(string, string)

WardleyLink.cs

Initializes a new instance of the WardleyLink class.

public WardleyLink(string source, string target)

Parameters

source string
The name of the component that depends on the target.
target string
The name of the component the source depends on.

Properties

NameDescription
FlowGets or sets the direction of the flow, drawn as arrowheads.
IsDashedGets or sets a value that indicates whether the line is dashed (Mermaid -.->).
LabelGets or sets the text drawn along the line, or null.
SourceGets or sets the name of the source: a component, an anchor, or a component of a pipeline.
TargetGets or sets the name of the target: a component, an anchor, or a component of a pipeline.

Gets or sets the direction of the flow, drawn as arrowheads.

public WardleyFlow Flow { get; set; }

Property value

WardleyFlow

Gets or sets a value that indicates whether the line is dashed (Mermaid -.->).

public bool IsDashed { get; set; }

Property value

bool

Gets or sets the text drawn along the line, or null.

public string? Label { get; set; }

Property value

string?

Gets or sets the name of the source: a component, an anchor, or a component of a pipeline.

public string Source { get; set; }

Property value

string

Gets or sets the name of the target: a component, an anchor, or a component of a pipeline.

public string Target { get; set; }

Property value

string

Methods

NameDescription
ToString()Returns the source and the target of the link.

ToString()

WardleyLink.cs

Returns the source and the target of the link.

public override string ToString()

Returns

string The text.