# ObjectDocumentEventArgs class

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

```cs
public class ObjectDocumentEventArgs : EventArgs
```

Event arguments for IDocumentObject generic events.

## Constructors

- [ObjectDocumentEventArgs](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.objectdocumenteventargs/ctor.md): Create a new instance of the IDocumentObject document event arguments.

## Properties

- [NewDocument](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.objectdocumenteventargs/newdocument.md): Gets the document that now owns this object.
- [Object](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.objectdocumenteventargs/object.md): Gets the object that raised the event.
- [OldDocument](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.objectdocumenteventargs/olddocument.md): Gets the document that used to own this object.
