# BarControl class

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

```cs
public class BarControl : Drawable
```

A control which hosts as [BarControl.Bar](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.barcontrol/bar.md) ui element.

## Constructors

- [BarControl](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.barcontrol/ctor.md): Create a toggle bar control around an existing bar object.

## Properties

- [Bar](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.barcontrol/bar.md): Gets or sets the bar hosted inside this control.
