# Spacer 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 Spacer : BarItem
```

A spacing element on a tool bar.

## Constructors

- [Spacer](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.spacer/ctor.md): Create a new tool bar spacer.

## Properties

- [AdjacentOnLeftSide](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.spacer/adjacentonleftside.md)
- [AdjacentOnRightSide](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.spacer/adjacentonrightside.md)
- [Separator](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.spacer/separator.md): Gets or sets whether this spacer includes a visual separator.

## Methods

- [Default](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.spacer/default.md): (2 overloads, static) Gets the default spacer with a 5 pixel width.
- [DrawDisabled](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.spacer/drawdisabled.md)
- [DrawFocus](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.spacer/drawfocus.md)
- [DrawHover](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.spacer/drawhover.md)
- [DrawNormal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.spacer/drawnormal.md)
- [ShowTooltipAt](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.spacer/showtooltipat.md)

## Inherited Members

- From [BarItem](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem.md): [Bar](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/bar.md), [Bounds](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/bounds.md), [Enabled](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/enabled.md), [Icon](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/icon.md), [KeyCode](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/keycode.md), [MaximumWidth](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/maximumwidth.md), [MinimumWidth](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/minimumwidth.md), [Nomen](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/nomen.md), [OffColour](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/offcolour.md), [OnColour](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/oncolour.md), [CreateOutline](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/createoutline.md), [Draw](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/draw.md), [DrawIcon](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/drawicon.md), [DrawIconAndText](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/drawiconandtext.md), [DrawText](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/drawtext.md), [FindGroupByChapter<T>](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/findgroupbychapter.md), [FindGroupBySection<T>](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/findgroupbysection.md), [HasNeighbourToTheLeft](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/hasneighbourtotheleft.md), [HasNeighbourToTheRight](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/hasneighbourtotheright.md), [IsEnabled](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/isenabled.md), [KeyDown](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/keydown.md), [KeyUp](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/keyup.md), [Layout](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/layout.md), [MouseDoubleClick](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/mousedoubleclick.md), [MouseDown](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/mousedown.md), [MouseLeave](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/mouseleave.md), [MouseMove](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/mousemove.md), [MouseUp](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/mouseup.md), [NeighbourToTheLeft](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/neighbourtotheleft.md), [NeighbourToTheRight](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/neighbourtotheright.md), [OverrideInfo](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/overrideinfo.md), [OverrideText](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/overridetext.md), [SetSizeLimits](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/setsizelimits.md), [TextInput](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/textinput.md)
