MindmapDiagram Class

A mindmap: a tree of ideas around a central one, each branch in its own color (Mermaid mindmap). The root is in the middle, its first children on its right and the others on its left.

public sealed class MindmapDiagram : Diagram
Inheritance
Diagram MindmapDiagram

Constructors

NameDescription
MindmapDiagram()

MindmapDiagram()

MindmapDiagram.cs
public MindmapDiagram()

No documentation is available.

Properties

NameDescription
ColorByGets or sets how the nodes are colored: by branch of the root (the default) or by depth (Mermaid colorBy).
MaxNodeWidthGets or sets the width at which the text of a node wraps, in pixels. The default is 200 (Mermaid maxNodeWidth).
NodePaddingGets or sets the space between the text of a node and its border, in pixels. The default is 10 (Mermaid padding).
RootGets or sets the central node, or null for an empty mindmap.

Gets or sets how the nodes are colored: by branch of the root (the default) or by depth (Mermaid colorBy).

public MindmapColorMode ColorBy { get; set; }

Property value

MindmapColorMode

MaxNodeWidth

MindmapDiagram.cs

Gets or sets the width at which the text of a node wraps, in pixels. The default is 200 (Mermaid maxNodeWidth).

public double MaxNodeWidth { get; set; }

Property value

double

Gets or sets the space between the text of a node and its border, in pixels. The default is 10 (Mermaid padding).

public double NodePadding { get; set; }

Property value

double

Gets or sets the central node, or null for an empty mindmap.

public MindmapNode? Root { get; set; }

Property value

MindmapNode?

Methods

NameDescription
EnumerateNodes()Enumerates the nodes, depth first, from the root.
SetRoot(DiagramText, MindmapNodeShape)Sets the central node.

EnumerateNodes()

MindmapDiagram.cs

Enumerates the nodes, depth first, from the root.

public IEnumerable<MindmapNode> EnumerateNodes()

Returns

IEnumerable<MindmapNode> The nodes.

SetRoot(DiagramText, MindmapNodeShape)

MindmapDiagram.cs

Sets the central node.

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

Parameters

label DiagramText
The text.
shape MindmapNodeShape
The shape.

Returns

MindmapNode The node.