# MermaidEventModelingDocument

Describes a parsed Mermaid Event Modeling diagram.

 Class  

`ChartForgeX.Mermaid`

**Namespace**

`ChartForgeX.Mermaid`

**Assembly**

`ChartForgeX.Mermaid`

**Source**

[MermaidEventModelingDocument.cs:14](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidEventModelingDocument.cs#L14)

**Base**

`MermaidDocument`

**Modifiers**

sealed

Describes a parsed Mermaid Event Modeling diagram.

## Inheritance

- [MermaidDocument](/api/chartforgex-mermaid-mermaiddocument/)
- MermaidEventModelingDocument

## Usage

 Explore 11 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

- Method [MermaidParser.ParseEventModeling](/api/chartforgex-mermaid-mermaidparser/#method-parseeventmodeling-string)

### Accepted by parameters 10

- Extension method [MermaidEventModelingDocument.ToDataTable](/api/chartforgex-mermaid-mermaideventmodelingdocument/#extension-todatatable-chartforgex-mermaid-mermaideventmodelingdocument-string) parameter `document`
- Extension method [MermaidEventModelingDocument.ToPng](/api/chartforgex-mermaid-mermaideventmodelingdocument/#extension-topng-chartforgex-mermaid-mermaideventmodelingdocument-chartforgex-mermaid-mermaidtopologyrenderoptions) parameter `document`
- Extension method [MermaidEventModelingDocument.ToSvg](/api/chartforgex-mermaid-mermaideventmodelingdocument/#extension-tosvg-chartforgex-mermaid-mermaideventmodelingdocument-chartforgex-mermaid-mermaidtopologyrenderoptions) parameter `document`
- Extension method [MermaidEventModelingDocument.ToTopologyChart](/api/chartforgex-mermaid-mermaideventmodelingdocument/#extension-totopologychart-chartforgex-mermaid-mermaideventmodelingdocument-chartforgex-mermaid-mermaidtopologyrenderoptions) parameter `document`
- Extension method [MermaidEventModelingDocument.ToVisualArtifact](/api/chartforgex-mermaid-mermaideventmodelingdocument/#extension-tovisualartifact-chartforgex-mermaid-mermaideventmodelingdocument-chartforgex-mermaid-mermaidtopologyrenderoptions) parameter `document`
- Method [MermaidEventModelingRendering.ToDataTable](/api/chartforgex-mermaid-mermaideventmodelingrendering/#method-todatatable-chartforgex-mermaid-mermaideventmodelingdocument-string) parameter `document`
- Method [MermaidEventModelingRendering.ToPng](/api/chartforgex-mermaid-mermaideventmodelingrendering/#method-topng-chartforgex-mermaid-mermaideventmodelingdocument-chartforgex-mermaid-mermaidtopologyrenderoptions) parameter `document`
- Method [MermaidEventModelingRendering.ToSvg](/api/chartforgex-mermaid-mermaideventmodelingrendering/#method-tosvg-chartforgex-mermaid-mermaideventmodelingdocument-chartforgex-mermaid-mermaidtopologyrenderoptions) parameter `document`
- Method [MermaidEventModelingRendering.ToTopologyChart](/api/chartforgex-mermaid-mermaideventmodelingrendering/#method-totopologychart-chartforgex-mermaid-mermaideventmodelingdocument-chartforgex-mermaid-mermaidtopologyrenderoptions) parameter `document`
- Method [MermaidEventModelingRendering.ToVisualArtifact](/api/chartforgex-mermaid-mermaideventmodelingrendering/#method-tovisualartifact-chartforgex-mermaid-mermaideventmodelingdocument-chartforgex-mermaid-mermaidtopologyrenderoptions) parameter `document`

 Filter members   

    Show inherited   

 

## Constructors

 `public MermaidEventModelingDocument()` [#](#constructor-ctor) 

[MermaidEventModelingDocument.cs:14](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidEventModelingDocument.cs#L14)

## Inherited Methods

 `public virtual bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

 `public virtual int GetHashCode()` [#](#method-gethashcode) 

Inherited from object

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public virtual string? ToString()` [#](#method-tostring) 

Inherited from object

Returns

 `string?` 

## Properties

 `public string? Title { get; set; }` [#](#property-title) 

[MermaidEventModelingDocument.cs:11](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidEventModelingDocument.cs#L11)

Gets or sets the authored diagram title.

 `public List<MermaidRawStatement> Statements { get; }` [#](#property-statements) 

[MermaidEventModelingDocument.cs:14](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidEventModelingDocument.cs#L14)

Gets retained non-empty Event Modeling statements.

 `public List<MermaidEventModelingFrame> Frames { get; }` [#](#property-frames) 

[MermaidEventModelingDocument.cs:17](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidEventModelingDocument.cs#L17)

Gets parsed timeframe and reset-frame entries in source order.

 `public List<MermaidEventModelingDataBlock> DataBlocks { get; }` [#](#property-datablocks) 

[MermaidEventModelingDocument.cs:20](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidEventModelingDocument.cs#L20)

Gets parsed data blocks keyed by their Mermaid identifier.

 `public List<MermaidEventModelingRelation> Relations { get; }` [#](#property-relations) 

[MermaidEventModelingDocument.cs:23](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidEventModelingDocument.cs#L23)

Gets inferred and explicit timeframe relations in render order.

## Inherited Properties

 `public MermaidDiagramKind Kind { get; set; }` [#](#property-kind) 

[MermaidDocument.cs:91](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDocument.cs#L91)

Inherited from [MermaidDocument](/api/chartforgex-mermaid-mermaiddocument/)

 `public bool IsDiagnosticOnly { get; }` [#](#property-isdiagnosticonly) 

[MermaidDocument.cs:94](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDocument.cs#L94)

Inherited from [MermaidDocument](/api/chartforgex-mermaid-mermaiddocument/)

 `public string SourceText { get; set; }` [#](#property-sourcetext) 

[MermaidDocument.cs:97](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDocument.cs#L97)

Inherited from [MermaidDocument](/api/chartforgex-mermaid-mermaiddocument/)

 `public MermaidSourceSpan HeaderSpan { get; set; }` [#](#property-headerspan) 

[MermaidDocument.cs:100](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDocument.cs#L100)

Inherited from [MermaidDocument](/api/chartforgex-mermaid-mermaiddocument/)

 `public string Header { get; set; }` [#](#property-header) 

[MermaidDocument.cs:103](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDocument.cs#L103)

Inherited from [MermaidDocument](/api/chartforgex-mermaid-mermaiddocument/)

 `public string? FrontMatter { get; set; }` [#](#property-frontmatter) 

[MermaidDocument.cs:106](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDocument.cs#L106)

Inherited from [MermaidDocument](/api/chartforgex-mermaid-mermaiddocument/)

 `public VisualAccessibility Accessibility { get; }` [#](#property-accessibility) 

[MermaidDocument.cs:109](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDocument.cs#L109)

Inherited from [MermaidDocument](/api/chartforgex-mermaid-mermaiddocument/)

 `public string? Theme { get; set; }` [#](#property-theme) 

[MermaidDocument.cs:112](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDocument.cs#L112)

Inherited from [MermaidDocument](/api/chartforgex-mermaid-mermaiddocument/)

 `public MermaidSourceConfiguration Configuration { get; internal set; }` [#](#property-configuration) 

[MermaidDocument.cs:115](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDocument.cs#L115)

Inherited from [MermaidDocument](/api/chartforgex-mermaid-mermaiddocument/)

 `public List<MermaidDirective> Directives { get; }` [#](#property-directives) 

[MermaidDocument.cs:118](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDocument.cs#L118)

Inherited from [MermaidDocument](/api/chartforgex-mermaid-mermaiddocument/)

 `public List<MermaidRawStatement> RawStatements { get; }` [#](#property-rawstatements) 

[MermaidDocument.cs:121](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDocument.cs#L121)

Inherited from [MermaidDocument](/api/chartforgex-mermaid-mermaiddocument/)

## Extension Methods

 `public static TableArtifact ToDataTable(MermaidEventModelingDocument document, string frameNumber)` [#](#extension-todatatable-chartforgex-mermaid-mermaideventmodelingdocument-string) 

[MermaidEventModelingRendering.Data.cs:23](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidEventModelingRendering.Data.cs#L23)

Converts a frame's inline and/or referenced data to one detached typed-fact table.

Parameters

**document ChartForgeX.Mermaid.MermaidEventModelingDocument required**

The source timeline and data declarations.

**frameNumber string required**

The exact authored frame identity, including leading zeroes.

Returns

 `TableArtifact` Existing table facts; an empty table when the frame has no data. 

 `public static byte[] ToPng(MermaidEventModelingDocument document, MermaidTopologyRenderOptions? options = null)` [#](#extension-topng-chartforgex-mermaid-mermaideventmodelingdocument-chartforgex-mermaid-mermaidtopologyrenderoptions) 

[MermaidEventModelingRendering.cs:100](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidEventModelingRendering.cs#L100)

Renders an Event Modeling document to static PNG.

Parameters

**document ChartForgeX.Mermaid.MermaidEventModelingDocument required**

**options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null optional**

Returns

 `byte[]` 

 `public static string ToSvg(MermaidEventModelingDocument document, MermaidTopologyRenderOptions? options = null)` [#](#extension-tosvg-chartforgex-mermaid-mermaideventmodelingdocument-chartforgex-mermaid-mermaidtopologyrenderoptions) 

[MermaidEventModelingRendering.cs:98](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidEventModelingRendering.cs#L98)

Renders an Event Modeling document to static SVG.

Parameters

**document ChartForgeX.Mermaid.MermaidEventModelingDocument required**

**options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null optional**

Returns

 `string` 

 `public static TopologyChart ToTopologyChart(MermaidEventModelingDocument document, MermaidTopologyRenderOptions? options = null)` [#](#extension-totopologychart-chartforgex-mermaid-mermaideventmodelingdocument-chartforgex-mermaid-mermaidtopologyrenderoptions) 

[MermaidEventModelingRendering.cs:14](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidEventModelingRendering.cs#L14)

Converts a timeline to shared swimlane ranks without changing source identities or inferring domain calculations.

Parameters

**document ChartForgeX.Mermaid.MermaidEventModelingDocument required**

**options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null optional**

Returns

 `TopologyChart` 

 `public static VisualArtifact ToVisualArtifact(MermaidEventModelingDocument document, MermaidTopologyRenderOptions? options = null)` [#](#extension-tovisualartifact-chartforgex-mermaid-mermaideventmodelingdocument-chartforgex-mermaid-mermaidtopologyrenderoptions) 

[MermaidEventModelingRendering.cs:85](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidEventModelingRendering.cs#L85)

Creates a portable native topology artifact and preserves captured source export limits.

Parameters

**document ChartForgeX.Mermaid.MermaidEventModelingDocument required**

**options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null optional**

Returns

 `VisualArtifact` 

<!-- PowerForge markdown artifact sha256:A9BF4C24F0AA29EB5BC3323D4B6E150DFC2434C3789CBDED4B12FACF27F5D0C9 -->
