# MermaidEventModelingDataBlock

Describes an Event Modeling data block.

 Class  

`ChartForgeX.Mermaid`

**Namespace**

`ChartForgeX.Mermaid`

**Assembly**

`ChartForgeX.Mermaid`

**Source**

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

**Base**

`MermaidAstNode`

**Modifiers**

sealed

Describes an Event Modeling data block.

## Inheritance

- [MermaidAstNode](/api/chartforgex-mermaid-mermaidastnode/)
- MermaidEventModelingDataBlock

## Usage

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

- Property [MermaidEventModelingDocument.DataBlocks](/api/chartforgex-mermaid-mermaideventmodelingdocument/#property-datablocks)

### Accepted by parameters 2

- Extension method [MermaidEventModelingDataBlock.ToDataTable](/api/chartforgex-mermaid-mermaideventmodelingdatablock/#extension-todatatable-chartforgex-mermaid-mermaideventmodelingdatablock) parameter `block`
- Method [MermaidEventModelingRendering.ToDataTable](/api/chartforgex-mermaid-mermaideventmodelingrendering/#method-todatatable-chartforgex-mermaid-mermaideventmodelingdatablock) parameter `block`

 Filter members   

    Show inherited   

 

## Constructors

 `public MermaidEventModelingDataBlock(string id, string? dataType, string content, MermaidSourceSpan span)` [#](#constructor-ctor-string-string-string-chartforgex-mermaid-mermaidsourcespan) 

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

Initializes an Event Modeling data block.

Parameters

**id string required**

**dataType string? required**

**content string required**

**span ChartForgeX.Mermaid.MermaidSourceSpan required**

## 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 Id { get; }` [#](#property-id) 

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

Gets the Mermaid data block id.

 `public string? DataType { get; }` [#](#property-datatype) 

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

Gets the optional Mermaid data type marker.

 `public string Content { get; }` [#](#property-content) 

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

Gets the raw data block content.

## Inherited Properties

 `public MermaidSourceSpan Span { get; }` [#](#property-span) 

[MermaidAstNode.cs:13](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidAstNode.cs#L13)

Inherited from [MermaidAstNode](/api/chartforgex-mermaid-mermaidastnode/)

## Extension Methods

 `public static TableArtifact ToDataTable(MermaidEventModelingDataBlock block)` [#](#extension-todatatable-chartforgex-mermaid-mermaideventmodelingdatablock) 

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

Converts one data block into detached Field/Type/Value facts using the existing table contract.

Parameters

**block ChartForgeX.Mermaid.MermaidEventModelingDataBlock required**

Returns

 `TableArtifact` 

<!-- PowerForge markdown artifact sha256:591E744949977B07347178AA8B4343C7B48BDB2F5AD835A89BD580F735F9960E -->
