# MermaidTreeViewNode

Describes one Mermaid tree view node. Review signatures, members, parameters, type relationships, and available reference details in ChartForgeX API reference.

 Class  

`ChartForgeX.Mermaid`

**Namespace**

`ChartForgeX.Mermaid`

**Assembly**

`ChartForgeX.Mermaid`

**Source**

[MermaidTreeViewDocument.cs:71](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidTreeViewDocument.cs#L71)

**Base**

`MermaidAstNode`

**Modifiers**

sealed

Describes one Mermaid tree view node.

## Inheritance

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

## Usage

 Explore 5 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 4

- Property [MermaidTreeViewDocument.Nodes](/api/chartforgex-mermaid-mermaidtreeviewdocument/#property-nodes)
- Property [MermaidTreeViewDocument.Roots](/api/chartforgex-mermaid-mermaidtreeviewdocument/#property-roots)
- Property [MermaidTreeViewNode.Children](/api/chartforgex-mermaid-mermaidtreeviewnode/#property-children)
- Property [MermaidTreeViewNode.Parent](/api/chartforgex-mermaid-mermaidtreeviewnode/#property-parent)

### Accepted by parameters 1

- Constructor [MermaidTreeViewNode.MermaidTreeViewNode](/api/chartforgex-mermaid-mermaidtreeviewnode/#constructor-ctor-string-string-int32-int32-chartforgex-mermaid-mermaidtreeviewnode-chartforgex-mermaid-mermaidsourcespan-string-collections-generic-ienumerable-system-string-string) parameter `parent`

 Filter members   

    Show inherited   

 

## Constructors

 `public MermaidTreeViewNode(string id, string label, int indent, int level, MermaidTreeViewNode? parent, MermaidSourceSpan span, string? description = null, IEnumerable<string>? classes = null, string? iconReference = null)` [#](#constructor-ctor-string-string-int32-int32-chartforgex-mermaid-mermaidtreeviewnode-chartforgex-mermaid-mermaidsourcespan-string-collections-generic-ienumerable-system-string-string) 

[MermaidTreeViewDocument.cs:71](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidTreeViewDocument.cs#L71)

Initializes a tree view node.

Parameters

**id string required**

**label string required**

**indent int required**

**level int required**

**parent ChartForgeX.Mermaid.MermaidTreeViewNode? required**

**span ChartForgeX.Mermaid.MermaidSourceSpan required**

**description string? = null optional**

**classes System.Collections.Generic.IEnumerable<string>? = null optional**

**iconReference string? = null optional**

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

[MermaidTreeViewDocument.cs:44](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidTreeViewDocument.cs#L44)

Gets the generated stable node id.

 `public string Label { get; }` [#](#property-label) 

[MermaidTreeViewDocument.cs:47](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidTreeViewDocument.cs#L47)

Gets the display label.

 `public string Description { get; }` [#](#property-description) 

[MermaidTreeViewDocument.cs:50](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidTreeViewDocument.cs#L50)

Gets the complete inline description, separate from the label.

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

[MermaidTreeViewDocument.cs:53](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidTreeViewDocument.cs#L53)

Gets copied source class names; external CSS is never executed.

 `public string? IconReference { get; }` [#](#property-iconreference) 

[MermaidTreeViewDocument.cs:56](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidTreeViewDocument.cs#L56)

Gets the explicit icon name, null for automatic policy or an empty string to hide it.

 `public bool IsDirectory { get; }` [#](#property-isdirectory) 

[MermaidTreeViewDocument.cs:59](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidTreeViewDocument.cs#L59)

Gets whether the source explicitly marks a directory with a trailing slash.

 `public int Indent { get; }` [#](#property-indent) 

[MermaidTreeViewDocument.cs:62](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidTreeViewDocument.cs#L62)

Gets the source indentation width.

 `public int Level { get; }` [#](#property-level) 

[MermaidTreeViewDocument.cs:65](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidTreeViewDocument.cs#L65)

Gets the indentation-derived hierarchy level.

 `public MermaidTreeViewNode? Parent { get; }` [#](#property-parent) 

[MermaidTreeViewDocument.cs:68](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidTreeViewDocument.cs#L68)

Gets the parent node, or null for root nodes.

 `public List<MermaidTreeViewNode> Children { get; }` [#](#property-children) 

[MermaidTreeViewDocument.cs:71](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidTreeViewDocument.cs#L71)

Gets child nodes.

 `public bool IsBranch { get; }` [#](#property-isbranch) 

[MermaidTreeViewDocument.cs:74](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidTreeViewDocument.cs#L74)

Gets whether the node has child nodes.

## 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:59C61280AB287154CF9778F32E87058996E94127520B358988A221CFB862488C -->
