# IInputElement interface

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 interface IInputElement
```

Base interface for UI elements hosted on an InputPanel.

## Properties

- [DesiredWidth](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.inputpanel.iinputelement/desiredwidth.md): Gets the width this element would like to have.

## Methods

- [ToEtoControl](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.inputpanel.iinputelement/toetocontrol.md): Create a control which represents this element.
