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
| Name | Description |
|---|---|
| TreeMark(HierarchyNode<T>) | Initializes a new instance of the TreeMark<T> class. |
TreeMark(HierarchyNode<T>)
TreeMark.csInitializes a new instance of the TreeMark<T> class.
public TreeMark(HierarchyNode<T> root)Parameters
rootHierarchyNode<T>- The root of the tree.
Properties
| Name | Description |
|---|---|
| Layout | Gets or sets the layout: a tidy tree or a dendrogram. The default is TreeLayoutKind.Tidy. |
| NodeRadius | Gets or sets the radius of the dots. The default is 3.5. |
Layout
TreeMark.csGets or sets the layout: a tidy tree or a dendrogram. The default is TreeLayoutKind.Tidy.
public TreeLayoutKind Layout { get; set; }