# GH_MenuTextBox class

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 class GH_MenuTextBox
```

Utility control for putting textboxes into menus.

## Constructors

- [GH_MenuTextBox](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-menutextbox/ctor.md): Constructor for TextBox collection.

## Properties

- [OriginalText](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-menutextbox/originaltext.md): Gets or sets the original text that was visible when the control was first displayed.
- [Text](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-menutextbox/text.md): Gets or sets the current text.
- [TextBoxItem](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-menutextbox/textboxitem.md): Gets the text box control embedded in the menu.
- [Width](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-menutextbox/width.md): Gets or sets the width of the control.

## Methods

- [CloseEntireMenuStructure](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-menutextbox/closeentiremenustructure.md): Call this function to close the ENTIRE menu structure.

## Events

- [KeyDown](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-menutextbox/keydown.md): Raised whenever a key is pressed.
- [TextChanged](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-menutextbox/textchanged.md): Raised whenever the text in the textbox changes.
