# DocumentBagEventType enum

Namespace: [Grasshopper2.UI.Canvas](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.ui.canvas.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public enum DocumentBagEventType
```

Enumerates the possible types of document based events.

## Values

| Name | Value | Description |
| --- | --- | --- |
| Added | 0 | An entirely new document stack has been added. |
| Removed | 1 | An entire document stack was removed. |
| Pushed | 2 | A new document was pushed to the head of a stack. |
| Popped | 3 | The head of a stack was popped to reveal a new head. |
| Floated | 4 | A document which was the current document is now no longer. |
| Sunk | 5 | A document which was not the current document is now so. |
| Restored | 6 | Raised once after an indeterminate number of changes happened while events were suppressed. Whenever this event fires, assume your state is hopelessly stale and needs to be rebuild from the ground up. |
