# MermaidTreemapNode

Describes one Mermaid treemap 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**

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

**Base**

`MermaidAstNode`

**Modifiers**

sealed

Describes one Mermaid treemap node.

## Inheritance

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

## 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 [MermaidTreemapDocument.Nodes](/api/chartforgex-mermaid-mermaidtreemapdocument/#property-nodes)
- Property [MermaidTreemapDocument.Roots](/api/chartforgex-mermaid-mermaidtreemapdocument/#property-roots)
- Property [MermaidTreemapNode.Children](/api/chartforgex-mermaid-mermaidtreemapnode/#property-children)
- Property [MermaidTreemapNode.Parent](/api/chartforgex-mermaid-mermaidtreemapnode/#property-parent)

### Accepted by parameters 1

- Constructor [MermaidTreemapNode.MermaidTreemapNode](/api/chartforgex-mermaid-mermaidtreemapnode/#constructor-ctor-string-nullable-system-double-int32-chartforgex-mermaid-mermaidtreemapnode-string-chartforgex-mermaid-mermaidsourcespan) parameter `parent`

 Filter members   

    Show inherited   

 

## Constructors

 `public MermaidTreemapNode(string label, double? value, int indent, MermaidTreemapNode? parent, string? className, MermaidSourceSpan span)` [#](#constructor-ctor-string-nullable-system-double-int32-chartforgex-mermaid-mermaidtreemapnode-string-chartforgex-mermaid-mermaidsourcespan) 

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

Initializes a treemap node.

Parameters

**label string required**

**value double? required**

**indent int required**

**parent ChartForgeX.Mermaid.MermaidTreemapNode? required**

**className 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 Label { get; }` [#](#property-label) 

[MermaidTreemapDocument.cs:40](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidTreemapDocument.cs#L40)

Gets the display label.

 `public double? Value { get; }` [#](#property-value) 

[MermaidTreemapDocument.cs:43](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidTreemapDocument.cs#L43)

Gets the optional leaf value. Null means this node is a section/parent node.

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

[MermaidTreemapDocument.cs:46](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidTreemapDocument.cs#L46)

Gets the source indentation level.

 `public string? ClassName { get; }` [#](#property-classname) 

[MermaidTreemapDocument.cs:49](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidTreemapDocument.cs#L49)

Gets the optional Mermaid class name from :::class syntax.

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

[MermaidTreemapDocument.cs:52](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidTreemapDocument.cs#L52)

Gets the parent node, or null for roots.

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

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

Gets child nodes.

 `public bool IsLeaf { get; }` [#](#property-isleaf) 

[MermaidTreemapDocument.cs:58](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidTreemapDocument.cs#L58)

Gets whether the node is a leaf with a numeric value.

 `public string Path { get; }` [#](#property-path) 

[MermaidTreemapDocument.cs:63](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidTreemapDocument.cs#L63)

Gets the node path from the root.

## 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:1B44A3DABFB3C86E9C70EDC062857CB4705FAD125DF78149CCF9EC8BB4FE5A0A -->
