# VisualTreeNode class

Namespace: [Grasshopper2.Data](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.data.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class VisualTreeNode
```

A single node in a tree diagram.

## Constructors

- [VisualTreeNode](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.visualtreenode/ctor.md): Create a new node.

## Properties

- [ChildCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.visualtreenode/childcount.md): Gets the number of child nodes.
- [Disc](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.visualtreenode/disc.md): Gets the visual disc of this node. This is set during drawing.
- [Implied](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.visualtreenode/implied.md): Gets whether this path is implied.
- [ItemCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.visualtreenode/itemcount.md): Gets the number of items.
- [LayerIndex](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.visualtreenode/layerindex.md): Gets the index of the layer for this node. This will be set during layout.
- [Location](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.visualtreenode/location.md): Gets the location of this node. This is set during layout.
- [Path](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.visualtreenode/path.md): Gets the path for this node. The root note will have a null path.
- [PathIndex](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.visualtreenode/pathindex.md): Gets the index of the column for this node. This will be set during layout.
- [Root](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.visualtreenode/root.md): (static)
- [TotalItemCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.visualtreenode/totalitemcount.md): Gets the total fruit count in the tree starting at this node.

## Methods

- [Append](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.visualtreenode/append.md): Append a new item to this node, or one of its child nodes.
- [ChildAt](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.visualtreenode/childat.md): Gets the child at the given index.
- [Draw](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.visualtreenode/draw.md): (2 overloads) Draw this node and all child nodes with callbacks for in between stages.
- [Find](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.visualtreenode/find.md): Find the path belonging to the bezier.
- [Fruit](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.visualtreenode/fruit.md): (static)
- [ItemAt](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.visualtreenode/itemat.md): Gets the item at the given index.
- [Layout](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.visualtreenode/layout.md): Perform layout on this node and all child nodes.
