# MultiList<T> class

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

```cs
public class MultiList<T>
```

Provides access to a sequential collection of lists.

**Type parameters:**

- `T`: Type to store in lists.

## Constructors

- [MultiList<T>](https://developer.rhino3d.com/api/gh2/type/grasshopper2.collections.multilist-1/ctor.md): (2 overloads) Create a new blank multi-list.

## Properties

- [CurrentCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.collections.multilist-1/currentcount.md): Gets the total number of items in the current list.
- [EmptyLists](https://developer.rhino3d.com/api/gh2/type/grasshopper2.collections.multilist-1/emptylists.md): Gets the total number of empty lists in this multi-list.
- [ItemCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.collections.multilist-1/itemcount.md): Gets the total number of items.
- [Items](https://developer.rhino3d.com/api/gh2/type/grasshopper2.collections.multilist-1/items.md): Enumerate over all items.
- [ListCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.collections.multilist-1/listcount.md): Gets the number of sublists.
- [Lists](https://developer.rhino3d.com/api/gh2/type/grasshopper2.collections.multilist-1/lists.md): Enumerate over all lists.

## Indexers

- [this[]](https://developer.rhino3d.com/api/gh2/type/grasshopper2.collections.multilist-1/item.md): Gets the list at the given index.

## Methods

- [Add](https://developer.rhino3d.com/api/gh2/type/grasshopper2.collections.multilist-1/add.md): Add a new item to the current list.
- [AddRange](https://developer.rhino3d.com/api/gh2/type/grasshopper2.collections.multilist-1/addrange.md): Add a collection of items to the current list.
- [BeginNewList](https://developer.rhino3d.com/api/gh2/type/grasshopper2.collections.multilist-1/beginnewlist.md): Close the current list and begin a fresh list. If the current list is empty, nothing will happen.
- [Flatten](https://developer.rhino3d.com/api/gh2/type/grasshopper2.collections.multilist-1/flatten.md): Collect all items in all lists and put them into a single list.
- [Posterize](https://developer.rhino3d.com/api/gh2/type/grasshopper2.collections.multilist-1/posterize.md): Chop all lists into smaller lists with the maximum count.
- [SplitBetween](https://developer.rhino3d.com/api/gh2/type/grasshopper2.collections.multilist-1/splitbetween.md): Split lists between specific items.
