# ActionList class

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

```cs
public sealed class ActionList
```

A list of [Action](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.action.md) instances. This class makes it easy to collect a sequence of undo actions for a single record.

## Constructors

- [ActionList](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.actionlist/ctor.md): (2 overloads) Create a new pre-populated list.

## Properties

- [Actions](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.actionlist/actions.md): Enumerate over all actions.
- [Count](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.actionlist/count.md): Gets the number of actions in this list.
- [Empty](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.actionlist/empty.md): (static) Gets an empty list.

## Methods

- [Add](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.actionlist/add.md): (2 overloads) Add an action to this list.
- [ToArray](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.actionlist/toarray.md): Gets an array containing all the actions.
- [ToRecord](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.actionlist/torecord.md): Create a record from the given actions, or null if there are no actions.

## Operators

- [operator +](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.actionlist/op-addition.md): (static) Concatenate two lists.
