# MermaidVennDocument

Describes a parsed Mermaid Venn diagram.

 Class  

`ChartForgeX.Mermaid`

**Namespace**

`ChartForgeX.Mermaid`

**Assembly**

`ChartForgeX.Mermaid`

**Source**

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

**Base**

`MermaidDocument`

**Modifiers**

sealed

Describes a parsed Mermaid Venn diagram.

## Inheritance

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

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

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

### Accepted by parameters 8

- Extension method [MermaidVennDocument.ToPng](/api/chartforgex-mermaid-mermaidvenndocument/#extension-topng-chartforgex-mermaid-mermaidvenndocument-chartforgex-mermaid-mermaidvennrenderoptions) parameter `document`
- Extension method [MermaidVennDocument.ToSvg](/api/chartforgex-mermaid-mermaidvenndocument/#extension-tosvg-chartforgex-mermaid-mermaidvenndocument-chartforgex-mermaid-mermaidvennrenderoptions) parameter `document`
- Extension method [MermaidVennDocument.ToVennDiagramBlock](/api/chartforgex-mermaid-mermaidvenndocument/#extension-tovenndiagramblock-chartforgex-mermaid-mermaidvenndocument-chartforgex-mermaid-mermaidvennrenderoptions) parameter `document`
- Extension method [MermaidVennDocument.ToVisualArtifact](/api/chartforgex-mermaid-mermaidvenndocument/#extension-tovisualartifact-chartforgex-mermaid-mermaidvenndocument-chartforgex-mermaid-mermaidvennrenderoptions) parameter `document`
- Method [MermaidVennRendering.ToPng](/api/chartforgex-mermaid-mermaidvennrendering/#method-topng-chartforgex-mermaid-mermaidvenndocument-chartforgex-mermaid-mermaidvennrenderoptions) parameter `document`
- Method [MermaidVennRendering.ToSvg](/api/chartforgex-mermaid-mermaidvennrendering/#method-tosvg-chartforgex-mermaid-mermaidvenndocument-chartforgex-mermaid-mermaidvennrenderoptions) parameter `document`
- Method [MermaidVennRendering.ToVennDiagramBlock](/api/chartforgex-mermaid-mermaidvennrendering/#method-tovenndiagramblock-chartforgex-mermaid-mermaidvenndocument-chartforgex-mermaid-mermaidvennrenderoptions) parameter `document`
- Method [MermaidVennRendering.ToVisualArtifact](/api/chartforgex-mermaid-mermaidvennrendering/#method-tovisualartifact-chartforgex-mermaid-mermaidvenndocument-chartforgex-mermaid-mermaidvennrenderoptions) parameter `document`

 Filter members   

    Show inherited   

 

## Constructors

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

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

## 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 List<MermaidRawStatement> Statements { get; }` [#](#property-statements) 

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

Gets Venn statements retained in source order.

 `public List<MermaidVennSet> Sets { get; }` [#](#property-sets) 

[MermaidVennDocument.cs:15](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidVennDocument.cs#L15)

Gets parsed Venn sets.

 `public List<MermaidVennIntersection> Intersections { get; }` [#](#property-intersections) 

[MermaidVennDocument.cs:18](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidVennDocument.cs#L18)

Gets parsed Venn intersections.

 `public List<MermaidVennTextNode> TextNodes { get; }` [#](#property-textnodes) 

[MermaidVennDocument.cs:21](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidVennDocument.cs#L21)

Gets parsed Venn text nodes.

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

[MermaidVennDocument.cs:24](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidVennDocument.cs#L24)

Gets style statements retained in source order.

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

[MermaidVennDocument.cs:27](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidVennDocument.cs#L27)

Gets or sets the optional title statement.

## 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 byte[] ToPng(MermaidVennDocument document, MermaidVennRenderOptions? options = null)` [#](#extension-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)` [#](#extension-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)` [#](#extension-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)` [#](#extension-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` 

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