# MermaidVennRendering

Provides ChartForgeX rendering adapters for parsed Mermaid Venn diagrams.

 Class  

`ChartForgeX.Mermaid`

**Namespace**

`ChartForgeX.Mermaid`

**Assembly**

`ChartForgeX.Mermaid`

**Source**

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

**Modifiers**

static

Provides ChartForgeX rendering adapters for parsed Mermaid Venn diagrams.

## Inheritance

- object
- MermaidVennRendering

 Filter members   

    Show inherited   

 

## Methods

 `public static byte[] ToPng(MermaidVennDocument document, MermaidVennRenderOptions? options = null)` [#](#method-topng-chartforgex-mermaid-mermaidvenndocument-chartforgex-mermaid-mermaidvennrenderoptions) 

[MermaidVennRendering.cs:83](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidVennRendering.cs#L83)

Renders a Mermaid Venn document to static PNG.

Parameters

**document ChartForgeX.Mermaid.MermaidVennDocument required**

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

Returns

 `byte[]` 

 `public static string ToSvg(MermaidVennDocument document, MermaidVennRenderOptions? options = null)` [#](#method-tosvg-chartforgex-mermaid-mermaidvenndocument-chartforgex-mermaid-mermaidvennrenderoptions) 

[MermaidVennRendering.cs:79](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidVennRendering.cs#L79)

Renders a Mermaid Venn document to static SVG.

Parameters

**document ChartForgeX.Mermaid.MermaidVennDocument required**

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

Returns

 `string` 

 `public static VennDiagramBlock ToVennDiagramBlock(MermaidVennDocument document, MermaidVennRenderOptions? options = null)` [#](#method-tovenndiagramblock-chartforgex-mermaid-mermaidvenndocument-chartforgex-mermaid-mermaidvennrenderoptions) 

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

Converts a Mermaid Venn document into a reusable Venn visual block.

Parameters

**document ChartForgeX.Mermaid.MermaidVennDocument required**

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

Returns

 `VennDiagramBlock` 

 `public static VisualArtifact ToVisualArtifact(MermaidVennDocument document, MermaidVennRenderOptions? options = null)` [#](#method-tovisualartifact-chartforgex-mermaid-mermaidvenndocument-chartforgex-mermaid-mermaidvennrenderoptions) 

[MermaidVennRendering.cs:55](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidVennRendering.cs#L55)

Wraps a Mermaid Venn document in a visual artifact envelope.

Parameters

**document ChartForgeX.Mermaid.MermaidVennDocument required**

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

Returns

 `VisualArtifact` 

## 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?` 

<!-- PowerForge markdown artifact sha256:3E3E5B9887FCD11CF9E5AA3EB6BD01B99C965DA21590D644B58DB8A6F2F1D04B -->
