# State enum

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 enum State
```

Enumerates the possible states in which an undo action can exist.

## Values

| Name | Value | Description |
| --- | --- | --- |
| Undo | 0 | An action or record in this state can be Undone, but not Redone. |
| Redo | 1 | An action or record in this state can be Redone, but not Undone. |
