Skip to content
ChartForgeX
Class

MermaidTreeViewNode

ChartForgeX.Mermaid

Namespace
ChartForgeX.Mermaid
Assembly
ChartForgeX.Mermaid
Modifiers
sealed

Describes one Mermaid tree view node.

Inheritance

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.

Accepted by parameters 1

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

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

Properties

public string Id { get; } #

Gets the generated stable node id.

public string Label { get; } #

Gets the display label.

public string Description { get; } #

Gets the complete inline description, separate from the label.

public IReadOnlyList<string> Classes { get; } #

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

public string? IconReference { get; } #

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

public bool IsDirectory { get; } #

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

public int Indent { get; } #

Gets the source indentation width.

public int Level { get; } #

Gets the indentation-derived hierarchy level.

public MermaidTreeViewNode? Parent { get; } #

Gets the parent node, or null for root nodes.

public List<MermaidTreeViewNode> Children { get; } #

Gets child nodes.

public bool IsBranch { get; } #

Gets whether the node has child nodes.