# GH_DocUndoEventArgs class

Namespace: [Grasshopper.Kernel](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.kernel.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public class GH_DocUndoEventArgs : EventArgs
```

These arguments are passed along with UndoStateChanged events on GH_Document.

## Properties

- [Document](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-docundoeventargs/document.md): Gets the document that raised the event.
- [Operation](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-docundoeventargs/operation.md): Gets the type of undo operation that caused this event.
- [Record](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-docundoeventargs/record.md): Gets the UndoRecord pertaining to this event. Not every Event type has a single record associated with it so be sure to test for null.
