# BeforeRemoveObjectEventArgs 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 BeforeRemoveObjectEventArgs : EventArgs
```

Event arguments used for Object Removed event.

## Constructors

- [BeforeRemoveObjectEventArgs](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.beforeremoveobjecteventargs/ctor.md): Create a new BeforeRemoveObjectEventArgs instance.

## Properties

- [Cancelled](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.beforeremoveobjecteventargs/cancelled.md): Gets whether the removal has been cancelled.
- [Document](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.beforeremoveobjecteventargs/document.md): Gets the document from which this object is about to be removed.
- [Object](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.beforeremoveobjecteventargs/object.md): Gets the object about to be removed.

## Methods

- [Cancel](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.beforeremoveobjecteventargs/cancel.md): Call this method to abort the removal.
