TreeDrawing Constructor (ITree, Int32, IColorizer) |
Constructs a colorized drawing of the given tree.
Namespace:
KansasStateUniversity.TreeViewer2
Assembly:
KansasStateUniversity.TreeViewer2 (in KansasStateUniversity.TreeViewer2.dll) Version: 2.0.0.0 (2.0.0.0)
Syntaxpublic TreeDrawing(
ITree tree,
int maxHeight,
IColorizer col
)
Public Sub New (
tree As ITree,
maxHeight As Integer,
col As IColorizer
)
public:
TreeDrawing(
ITree^ tree,
int maxHeight,
IColorizer^ col
)
new :
tree : ITree *
maxHeight : int *
col : IColorizer -> TreeDrawing
Parameters
- tree
- Type: KansasStateUniversity.TreeViewer2ITree
The tree to be drawn. If null, no tree is
drawn. - maxHeight
- Type: SystemInt32
The maximum height to display. If this value is
negative, no nodes will be displayed. - col
- Type: KansasStateUniversity.TreeViewer2IColorizer
The IColorizer used to obtain the color of each node.
If null, each node is colored black.
Remarks
The contents of nodes
are obtained using the
ToString() method (
ToString). If the
root of the tree is
null, the string
"null" is used.
See Also