# ExpansionOptions enum

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
[Flags]
public enum ExpansionOptions
```

Enumerstes various options for tree expansion, used in the ExpandEmbeddedCollections method.

## Values

| Name | Value | Description |
| --- | --- | --- |
| None | 0 | No options are used. |
| ExpandTwigs | 2 | Twigs and other linear collections are expanded. |
| ExpandTrees | 4 | Trees and multi-dimensional arrays are expanded. |
| Recurse | 32 | Expansion is recursive until no more expandable items are encountered. |
| Simplify | 64 | Overlapping leading zeroes are removed at every recursive iteration. |
| GraftMixed | 128 | Individual items in twigs which also contain collections will be grafted into separate twigs. |
| RepairPears | 256 | Correctly upgrade [IPear](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.ipear.md) instances assigned as items. |
| StandardTypes | 1024 | Use the predefined set of types to be considered linear collections. |
| Default | 1510 | Default options. |
