Skip to content
ChartForgeX
Class

MermaidSequenceDocument

ChartForgeX.Mermaid

Namespace
ChartForgeX.Mermaid
Assembly
ChartForgeX.Mermaid
Modifiers
sealed

Describes a Mermaid sequence diagram document.

Inheritance

Usage

Explore 9 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Accepted by parameters 8

Constructors

public MermaidSequenceDocument() #

Properties

public string? Title { get; set; } #

Gets or sets the sequence's explicit title statement.

public List<MermaidRawStatement> Statements { get; } #

Gets raw sequence statements retained with source spans.

public List<MermaidSequenceParticipant> Participants { get; } #

Gets declared and inferred participants in source order.

public List<MermaidSequenceMessage> Messages { get; } #

Gets parsed sequence messages.

public List<MermaidSequenceNote> Notes { get; } #

Gets parsed sequence notes.

public List<MermaidSequenceActivation> Activations { get; } #

Gets parsed activation and deactivation statements.

public List<MermaidSequenceBlock> Blocks { get; } #

Gets parsed block control statements such as loop, alt, par, critical, rect, and end.

public List<MermaidSequenceProperties> PropertyStatements { get; } #

Gets raw, located participant property declarations in authored order.

public List<MermaidSequenceAutonumber> AutonumberStatements { get; } #

Gets authored numbering controls in source order, including off and resume occurrences.

public MermaidSequenceAutonumber? Autonumber { get; } #

Gets the last authored numbering control, when present; edit MermaidSequenceDocument.AutonumberStatements to author controls.

public List<MermaidSequenceLifetime> Lifetimes { get; } #

Gets participant creation and destruction directives with their associated message indices.

public List<MermaidSequenceParticipantBox> ParticipantBoxes { get; } #

Gets vertical boxes around contiguous participant declarations.

Extension Methods

public static byte[] ToPng(MermaidSequenceDocument document, MermaidSequenceRenderOptions? options = null) #

Renders a Mermaid sequence document to static PNG through ChartForgeX sequence rendering.

Parameters

document ChartForgeX.Mermaid.MermaidSequenceDocument required
options ChartForgeX.Mermaid.MermaidSequenceRenderOptions? = null optional

Returns

byte[]
public static SequenceArtifact ToSequenceArtifact(MermaidSequenceDocument document, MermaidSequenceRenderOptions? options = null) #

Converts a Mermaid sequence document into a product-neutral sequence artifact.

Parameters

document ChartForgeX.Mermaid.MermaidSequenceDocument required
The parsed Mermaid sequence document.
options ChartForgeX.Mermaid.MermaidSequenceRenderOptions? = null optional
Optional conversion and rendering defaults.

Returns

SequenceArtifact A sequence artifact that can render static SVG and PNG previews.
public static string ToSvg(MermaidSequenceDocument document, MermaidSequenceRenderOptions? options = null) #

Renders a Mermaid sequence document to static SVG through ChartForgeX sequence rendering.

Parameters

document ChartForgeX.Mermaid.MermaidSequenceDocument required
options ChartForgeX.Mermaid.MermaidSequenceRenderOptions? = null optional

Returns

string
public static VisualArtifact ToVisualArtifact(MermaidSequenceDocument document, MermaidSequenceRenderOptions? options = null) #

Wraps a Mermaid sequence document in a product-neutral visual artifact envelope backed by a sequence artifact.

Parameters

document ChartForgeX.Mermaid.MermaidSequenceDocument required
The parsed Mermaid sequence document.
options ChartForgeX.Mermaid.MermaidSequenceRenderOptions? = null optional
Optional conversion and rendering defaults.

Returns

VisualArtifact A visual artifact envelope.