# GH_DocumentTree class

Namespace: [Grasshopper.Kernel](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.kernel.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public class GH_DocumentTree : IGH_DebugDescription
```

Represents a hierarchical tree of documents that are subsidiary to one another.

## Constructors

- [GH_DocumentTree](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-documenttree/ctor.md): Create a new document tree.

## Properties

- [FlatCollection](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-documenttree/flatcollection.md): Gets a flat collection of all documents. The most subsidiary documents are at the start of the collection.
- [Root](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-documenttree/root.md): Gets the root node for this document.
- [RootDocument](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-documenttree/rootdocument.md): Gets the document inside the root node of this tree.

## Methods

- [AppendToDebugLog](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-documenttree/appendtodebuglog.md)
