SequenceBlock Class

A block of a sequence diagram: a frame around steps, such as a loop, or the sections of an alternative.

public sealed class SequenceBlock : SequenceStep
Inheritance
SequenceStep SequenceBlock

Constructors

NameDescription
SequenceBlock(SequenceBlockKind)Initializes a new instance of the SequenceBlock class.

SequenceBlock(SequenceBlockKind)

SequenceBlock.cs

Initializes a new instance of the SequenceBlock class.

public SequenceBlock(SequenceBlockKind kind)

Parameters

kind SequenceBlockKind
The kind.

Properties

NameDescription
ColorGets or sets the background of a SequenceBlockKind.Rectangle, or null for the default.
KindGets or sets the kind, shown in the corner of the frame.
SectionsGets the sections, separated by dashed lines: the alternatives of SequenceBlockKind.Alternative (Mermaid else), the branches of SequenceBlockKind.Parallel (and), the options of SequenceBlockKind.Critical (option). The other kinds have one section.

Gets or sets the background of a SequenceBlockKind.Rectangle, or null for the default.

public SceneColor? Color { get; set; }

Property value

SceneColor?

Gets or sets the kind, shown in the corner of the frame.

public SequenceBlockKind Kind { get; set; }

Property value

SequenceBlockKind

Gets the sections, separated by dashed lines: the alternatives of SequenceBlockKind.Alternative (Mermaid else), the branches of SequenceBlockKind.Parallel (and), the options of SequenceBlockKind.Critical (option). The other kinds have one section.

public IList<SequenceBlockSection> Sections { get; }