# GH_GraphicBranch class

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

```cs
public class GH_GraphicBranch
```

## Fields

- [DomainAngleFactor](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/domainanglefactor.md): (static)
- [m_angle](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/m-angle.md)
- [m_data](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/m-data.md)
- [m_length](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/m-length.md)
- [m_offset](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/m-offset.md)
- [m_parent](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/m-parent.md)
- [m_path](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/m-path.md)
- [m_selected](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/m-selected.md)
- [m_twigs](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/m-twigs.md)
- [TwigLengthFactor](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/twiglengthfactor.md): (static)
- [TwigLengthMin](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/twiglengthmin.md): (static)

## Properties

- [Angle](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/angle.md): Gets or sets the angle (in radians, counter-clock wise from the world x-axis) of this branch.
- [Data](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/data.md): Gets or sets the data contained in this branch.
- [DataCount](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/datacount.md)
- [IsEmpty](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/isempty.md): A branch is considered to be empty if it contains no data items.
- [IsLeaf](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/isleaf.md): A branch is considered to be a lead if it lacks twigs.
- [IsRoot](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/isroot.md): A branch is considered to be a root if it lacks a parent.
- [IsTrunk](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/istrunk.md)
- [Length](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/length.md): Gets or sets the Length factor of this branch.
- [LongestPathLength](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/longestpathlength.md): Find the longest path in this subtree. This property is forwards recursive, meaning children will be measures, but siblings are ignored.
- [Offset](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/offset.md): Gets or sets the distance factor from the start of the branch to the graph origin.
- [Parent](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/parent.md): Gets or sets the parent of this branch
- [Path](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/path.md): Gets or sets the data tree path of this branch
- [Selected](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/selected.md): Gets or sets a value that represents the selected state of this branch. Setting this value does not affect child branches.
- [Twigs](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/twigs.md): Gets or set the twigs (sub branches) of this branch. If you're setting twigs, consider using the specialized functions instead.

## Methods

- [BG_Colour](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/bg-colour.md)
- [Distribute_Phylogenetic](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/distribute-phylogenetic.md): Distribute this branch and all subbranches based on an inward solving algorithm. This distribution results in a standard phylogenetic tree layout. Before this function is called it is important that all Leaf branches already have a correct angle.
- [FG_Colour](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/fg-colour.md)
- [GrowTree](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/growtree.md): Recursively grow a tree that contains all the given paths. This branch will become a new Root.
- [RenderBranchTag](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/renderbranchtag.md)
- [RenderDot](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/renderdot.md)
- [RenderNodes](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/rendernodes.md)
- [RenderTags](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/rendertags.md)
- [RenderTextDot](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/rendertextdot.md)
- [RenderWires_Organic](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/renderwires-organic.md)
- [RenderWires_Schematic](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/renderwires-schematic.md)
- [SelectAll](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/selectall.md): (2 overloads) Select or deselect this branch and all child branches.
- [SolveBezier](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/solvebezier.md)
- [SolveLeafAngles](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphicbranch/solveleafangles.md): Collects all leafs in this tree and distributes them equally inside an angle domain.
