# ExpandMethod 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
public enum ExpandMethod
```

Enumerates the possible item insertion methods for twig expansion.

## Values

| Name | Value | Description |
| --- | --- | --- |
| RepeatLeading | 0 | Repeat the first item in a collection. |
| RepeatTrailing | 1 | Last item is repeated. |
| RepeatExtremes | 2 | Repeat the first and last items in a collection. |
| RepeatInner | 3 | Repeat the centre-most item in a collection. |
| Interpolate | 4 | Repeat all items as regularly as possible. |
| Wrap | 5 | Repeat the collection in its entirety. |
| Flip | 6 | Repeat the collection in its entirety, with every second repetition being reversed. |
| ZigZag | 7 | Repeat and reverse the collection in its entirety, avoiding duplicates along the transitions. |
