# MermaidDirective

Describes a Mermaid directive comment such as init configuration.

 Class  

`ChartForgeX.Mermaid`

**Namespace**

`ChartForgeX.Mermaid`

**Assembly**

`ChartForgeX.Mermaid`

**Source**

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

**Modifiers**

sealed

Describes a Mermaid directive comment such as init configuration.

## Inheritance

- object
- MermaidDirective

## Usage

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

- Property [MermaidAgentflowDocument.Directives](/api/chartforgex-mermaid-mermaidagentflowdocument/#property-directives)
- Property [MermaidArchitectureDocument.Directives](/api/chartforgex-mermaid-mermaidarchitecturedocument/#property-directives)
- Property [MermaidBlockDocument.Directives](/api/chartforgex-mermaid-mermaidblockdocument/#property-directives)
- Property [MermaidC4Document.Directives](/api/chartforgex-mermaid-mermaidc4document/#property-directives)
- Property [MermaidClassDocument.Directives](/api/chartforgex-mermaid-mermaidclassdocument/#property-directives)
- Property [MermaidCynefinDocument.Directives](/api/chartforgex-mermaid-mermaidcynefindocument/#property-directives)
- Property [MermaidDocument.Directives](/api/chartforgex-mermaid-mermaiddocument/#property-directives)
- Property [MermaidEntityRelationshipDocument.Directives](/api/chartforgex-mermaid-mermaidentityrelationshipdocument/#property-directives)
- Property [MermaidEventModelingDocument.Directives](/api/chartforgex-mermaid-mermaideventmodelingdocument/#property-directives)
- Property [MermaidFlowchartDocument.Directives](/api/chartforgex-mermaid-mermaidflowchartdocument/#property-directives)
- Property [MermaidGanttDocument.Directives](/api/chartforgex-mermaid-mermaidganttdocument/#property-directives)
- Property [MermaidGitGraphDocument.Directives](/api/chartforgex-mermaid-mermaidgitgraphdocument/#property-directives)
- Property [MermaidIshikawaDocument.Directives](/api/chartforgex-mermaid-mermaidishikawadocument/#property-directives)
- Property [MermaidJourneyDocument.Directives](/api/chartforgex-mermaid-mermaidjourneydocument/#property-directives)
- Property [MermaidKanbanDocument.Directives](/api/chartforgex-mermaid-mermaidkanbandocument/#property-directives)
- Property [MermaidMindMapDocument.Directives](/api/chartforgex-mermaid-mermaidmindmapdocument/#property-directives)
- Property [MermaidPacketDocument.Directives](/api/chartforgex-mermaid-mermaidpacketdocument/#property-directives)
- Property [MermaidPieDocument.Directives](/api/chartforgex-mermaid-mermaidpiedocument/#property-directives)
- Property [MermaidQuadrantDocument.Directives](/api/chartforgex-mermaid-mermaidquadrantdocument/#property-directives)
- Property [MermaidRadarDocument.Directives](/api/chartforgex-mermaid-mermaidradardocument/#property-directives)
- Property [MermaidRailroadDocument.Directives](/api/chartforgex-mermaid-mermaidrailroaddocument/#property-directives)
- Property [MermaidRequirementDocument.Directives](/api/chartforgex-mermaid-mermaidrequirementdocument/#property-directives)
- Property [MermaidSankeyDocument.Directives](/api/chartforgex-mermaid-mermaidsankeydocument/#property-directives)
- Property [MermaidSequenceDocument.Directives](/api/chartforgex-mermaid-mermaidsequencedocument/#property-directives)
- Property [MermaidStateDocument.Directives](/api/chartforgex-mermaid-mermaidstatedocument/#property-directives)
- Property [MermaidSwimlaneDocument.Directives](/api/chartforgex-mermaid-mermaidswimlanedocument/#property-directives)
- Property [MermaidTimelineDocument.Directives](/api/chartforgex-mermaid-mermaidtimelinedocument/#property-directives)
- Property [MermaidTreemapDocument.Directives](/api/chartforgex-mermaid-mermaidtreemapdocument/#property-directives)
- Property [MermaidTreeViewDocument.Directives](/api/chartforgex-mermaid-mermaidtreeviewdocument/#property-directives)
- Property [MermaidUseCaseDocument.Directives](/api/chartforgex-mermaid-mermaidusecasedocument/#property-directives)
- Property [MermaidVennDocument.Directives](/api/chartforgex-mermaid-mermaidvenndocument/#property-directives)
- Property [MermaidWardleyDocument.Directives](/api/chartforgex-mermaid-mermaidwardleydocument/#property-directives)
- Property [MermaidXYChartDocument.Directives](/api/chartforgex-mermaid-mermaidxychartdocument/#property-directives)
- Property [MermaidZenUmlDocument.Directives](/api/chartforgex-mermaid-mermaidzenumldocument/#property-directives)

 Filter members   

    Show inherited   

 

## Constructors

 `public MermaidDirective(string text, MermaidSourceSpan span)` [#](#constructor-ctor-string-chartforgex-mermaid-mermaidsourcespan) 

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

Initializes a Mermaid directive.

Parameters

**text 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 Text { get; set; }` [#](#property-text) 

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

Gets or sets the directive text.

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

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

Gets or sets the directive source span.

<!-- PowerForge markdown artifact sha256:1465C7B5C0C676B201C2FE472B396586D0A6A9E1FAA06CB44A5B52E78DB02485 -->
