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
SequenceStepSequenceBlock
Constructors
| Name | Description |
|---|---|
| SequenceBlock(SequenceBlockKind) | Initializes a new instance of the SequenceBlock class. |
SequenceBlock(SequenceBlockKind)
SequenceBlock.csInitializes a new instance of the SequenceBlock class.
public SequenceBlock(SequenceBlockKind kind)Parameters
kindSequenceBlockKind- The kind.
Properties
| Name | Description |
|---|---|
| Color | Gets or sets the background of a SequenceBlockKind.Rectangle, or null for the default. |
| Kind | Gets or sets the kind, shown in the corner of the frame. |
| Sections | 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. |
Color
SequenceBlock.csGets or sets the background of a SequenceBlockKind.Rectangle, or null for the default.
public SceneColor? Color { get; set; }Property value
Kind
SequenceBlock.csGets or sets the kind, shown in the corner of the frame.
public SequenceBlockKind Kind { get; set; }Property value
Sections
SequenceBlock.csGets 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; }