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
DiagramMindmapDiagram
Constructors
| Name | Description |
|---|---|
| MindmapDiagram() |
MindmapDiagram()
MindmapDiagram.cspublic MindmapDiagram()No documentation is available.
Properties
| Name | Description |
|---|---|
| ColorBy | Gets or sets how the nodes are colored: by branch of the root (the default) or by depth (Mermaid colorBy). |
| MaxNodeWidth | Gets or sets the width at which the text of a node wraps, in pixels. The default is 200 (Mermaid maxNodeWidth). |
| NodePadding | Gets or sets the space between the text of a node and its border, in pixels. The default is 10 (Mermaid padding). |
| Root | Gets or sets the central node, or null for an empty mindmap. |
ColorBy
MindmapDiagram.csGets 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
MaxNodeWidth
MindmapDiagram.csNodePadding
MindmapDiagram.csGets or sets the central node, or null for an empty mindmap.
public MindmapNode? Root { get; set; }Property value
Methods
| Name | Description |
|---|---|
| EnumerateNodes() | Enumerates the nodes, depth first, from the root. |
| SetRoot(DiagramText, MindmapNodeShape) | Sets the central node. |
EnumerateNodes()
MindmapDiagram.csEnumerates the nodes, depth first, from the root.
public IEnumerable<MindmapNode> EnumerateNodes()Returns
IEnumerable<MindmapNode> The nodes.
SetRoot(DiagramText, MindmapNodeShape)
MindmapDiagram.csSets the central node.
public MindmapNode SetRoot(DiagramText label, MindmapNodeShape shape = MindmapNodeShape.Default)