# IGH_Embeddable interface

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

```cs
public interface IGH_Embeddable
```

Implement this interface in your custom control if you want to be called before a menu commits or cancels.

**Derived types:** [GH_ControlKnobValueEditor](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-controlknobvalueeditor.md), [GH_NumericScrollerValueEditor](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numericscrollervalueeditor.md), [GH_NumericTextBox](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox.md)

## Methods

- [PrepareForCancel](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.igh-embeddable/prepareforcancel.md): This will be called prior to a Cancel operation.
- [PrepareForCommit](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.igh-embeddable/prepareforcommit.md): This will be called prior to a Commit operation.
