# MermaidRequirementElement

Describes one Mermaid requirement element block.

 Class  

`ChartForgeX.Mermaid`

**Namespace**

`ChartForgeX.Mermaid`

**Assembly**

`ChartForgeX.Mermaid`

**Source**

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

**Base**

`MermaidAstNode`

**Modifiers**

sealed

Describes one Mermaid requirement element block.

## Inheritance

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

## Usage

 Explore 1 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 [MermaidRequirementDocument.Elements](/api/chartforgex-mermaid-mermaidrequirementdocument/#property-elements)

 Filter members   

    Show inherited   

 

## Constructors

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

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

Initializes a requirement element.

Parameters

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

[MermaidRequirementDocument.cs:82](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidRequirementDocument.cs#L82)

Gets or sets the Mermaid element name.

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

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

Gets or sets the element type field.

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

[MermaidRequirementDocument.cs:88](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidRequirementDocument.cs#L88)

Gets or sets the element document reference field.

 `public List<string> Classes { get; }` [#](#property-classes) 

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

Gets style classes assigned to the element.

 `public Dictionary<string, string> Styles { get; }` [#](#property-styles) 

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

Gets direct authored styles; unsupported properties remain diagnosed.

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

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