MindmapNode Class

A node of a mindmap: a text in a shape, with its children.

public sealed class MindmapNode

Constructors

NameDescription
MindmapNode(DiagramText, MindmapNodeShape)Initializes a new instance of the MindmapNode class.

MindmapNode(DiagramText, MindmapNodeShape)

MindmapNode.cs

Initializes a new instance of the MindmapNode class.

public MindmapNode(DiagramText label, MindmapNodeShape shape = MindmapNodeShape.Default)

Parameters

label DiagramText
The text.
shape MindmapNodeShape
The shape.

Properties

NameDescription
ChildrenGets the children, in order.
CssClassesGets the CSS classes of the node, written to the SVG (Mermaid :::urgent large).
IconGets or sets the name of the icon (Mermaid ::icon(fa fa-book)), which is written to Mermaid but not drawn, or null for none.
IdGets or sets the identifier written before the shape in Mermaid (id[text]), or null for none. The mindmaps do not use it.
LabelGets or sets the text.
ShapeGets or sets the shape.

Gets the children, in order.

public IList<MindmapNode> Children { get; }

Property value

IList<MindmapNode>

CssClasses

MindmapNode.cs

Gets the CSS classes of the node, written to the SVG (Mermaid :::urgent large).

public IList<string> CssClasses { get; }

Property value

IList<string>

Gets or sets the name of the icon (Mermaid ::icon(fa fa-book)), which is written to Mermaid but not drawn, or null for none.

public string? Icon { get; set; }

Property value

string?

Gets or sets the identifier written before the shape in Mermaid (id[text]), or null for none. The mindmaps do not use it.

public string? Id { get; set; }

Property value

string?

Gets or sets the text.

public DiagramText Label { get; set; }

Property value

DiagramText

Gets or sets the shape.

public MindmapNodeShape Shape { get; set; }

Property value

MindmapNodeShape

Methods

NameDescription
AddChild(DiagramText, MindmapNodeShape)Adds a child.
ToString()Returns the text of the node.

AddChild(DiagramText, MindmapNodeShape)

MindmapNode.cs

Adds a child.

public MindmapNode AddChild(DiagramText label, MindmapNodeShape shape = MindmapNodeShape.Default)

Parameters

label DiagramText
The text.
shape MindmapNodeShape
The shape.

Returns

MindmapNode The child.

ToString()

MindmapNode.cs

Returns the text of the node.

public override string ToString()

Returns

string The text.