TreeMark<T> Class

Draws a tree as a node-link diagram: a dot per node and a curve from each node to its children. In Cartesian coordinates the root is at the top; transposed, it is on the left; in polar coordinates, it is at the center (a radial tree). The labels of the leaves are drawn after them, and the labels of the other nodes next to them, except in polar coordinates.

public sealed class TreeMark<T> : HierarchyMark<T>

Type parameters

T
The type of the data of the nodes.
Inheritance
HierarchyMark<T> TreeMark<T>

Constructors

NameDescription
TreeMark(HierarchyNode<T>)Initializes a new instance of the TreeMark<T> class.

TreeMark(HierarchyNode<T>)

TreeMark.cs

Initializes a new instance of the TreeMark<T> class.

public TreeMark(HierarchyNode<T> root)

Parameters

root HierarchyNode<T>
The root of the tree.

Properties

NameDescription
LayoutGets or sets the layout: a tidy tree or a dendrogram. The default is TreeLayoutKind.Tidy.
NodeRadiusGets or sets the radius of the dots. The default is 3.5.

Gets or sets the layout: a tidy tree or a dendrogram. The default is TreeLayoutKind.Tidy.

public TreeLayoutKind Layout { get; set; }

Property value

TreeLayoutKind

NodeRadius

TreeMark.cs

Gets or sets the radius of the dots. The default is 3.5.

public double NodeRadius { get; set; }

Property value

double