# BarStyle 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 sealed class BarStyle
```

Styling properties of a [Bar](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.bar.md) control.

## Constructors

- [BarStyle](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.barstyle/ctor.md): Create a new style.

## Properties

- [Categories](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.barstyle/categories.md): Gets whether or not category labels are drawn underneath the bar.
- [Default](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.barstyle/default.md): (static) Gets the default style.
- [DefaultWithoutCategories](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.barstyle/defaultwithoutcategories.md): (static) Gets the default style without category labels.
- [Padding](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.barstyle/padding.md): Gets the padding between the toolbar bounds and the layout region.
- [Radius](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.barstyle/radius.md): Gets the radius of the corners of the free bar elements.

## Methods

- [WithCategories](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.barstyle/withcategories.md): Gets the style with category labels.
- [WithoutCategories](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.barstyle/withoutcategories.md): Gets the style without category labels.
- [WithPadding](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.barstyle/withpadding.md): Modify the padding.
- [WithRadius](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.barstyle/withradius.md): Modify the radius.
