# InputPanel class

Namespace: [Grasshopper2.UI.InputPanel](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.ui.inputpanel.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class InputPanel
```

Utility class for aggregating controls to be shown on input panels. This panel (when complete) will populate a Menu or Form or PopOver or....

## Properties

- [Category](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.inputpanel.inputpanel/category.md): Gets the current category. Any items added to the panel will belong to a frame with the category name.
- [Count](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.inputpanel.inputpanel/count.md): Gets the number of elements on this panel.

## Methods

- [Add](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.inputpanel.inputpanel/add.md): Add an element to this panel.
- [AddBar](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.inputpanel.inputpanel/addbar.md): (2 overloads)
- [AddCheck](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.inputpanel.inputpanel/addcheck.md): Add a checkbox to this input.
- [AddLabel](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.inputpanel.inputpanel/addlabel.md): Add a label to this input.
- [AddSpace](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.inputpanel.inputpanel/addspace.md): Add a blank vertical gap to this panel. Rows sit two pixels apart, which is right for a run of related bars but too tight when one group of them needs setting apart from the group above.
- [AddText](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.inputpanel.inputpanel/addtext.md): Add a textbox to this input.
- [BeginCategory](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.inputpanel.inputpanel/begincategory.md): Create a disposable category block.
- [MoveCategoryBelow](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.inputpanel.inputpanel/movecategorybelow.md): Move an existing category directly underneath another.
- [RemoveCategory](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.inputpanel.inputpanel/removecategory.md): Remove a category from this panel. You typically wouldn't do this except sometimes it's less work to let a base class populate the panel and then remove some nonsensical category afterwards.
- [RenameCategory](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.inputpanel.inputpanel/renamecategory.md): Rename a category.
- [ShowAsForm](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.inputpanel.inputpanel/showasform.md): Populate a title-bar less form with the panel contents. An attempt will be made to place the form _next to_ the bounds but failing that it will be placed next to the point.
- [ToEtoControl](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.inputpanel.inputpanel/toetocontrol.md): Create an Eto control which hosts all the inputs on this panel.
