# ToolBar class

Namespace: [Eto.Forms](https://eto.picoe.ca/api/namespace/eto.forms.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md)

```cs
[ContentProperty("Items")]
[Handler(ToolBar.IHandler)]
public class ToolBar : Tool, IBindableWidgetContainer
```

Toolbar widget for use on a [Window](https://eto.picoe.ca/api/type/eto.forms.window.md).

**Remarks:** Only a single toolbar is currently supported for each window.

## Properties

- [Dock](https://eto.picoe.ca/api/type/eto.forms.toolbar/dock.md): Gets or sets the docking hint for the toolbar.
- [IBindableWidgetContainer.Children](https://eto.picoe.ca/api/type/eto.forms.toolbar/eto-forms-ibindablewidgetcontainer-children.md)
- [Items](https://eto.picoe.ca/api/type/eto.forms.toolbar/items.md): Gets the collection of items in the toolbar.
- [TextAlign](https://eto.picoe.ca/api/type/eto.forms.toolbar/textalign.md): Gets or sets the text alignment hint.

## Methods

- [OnLoad](https://eto.picoe.ca/api/type/eto.forms.toolbar/onload.md): Called when the tool item is loaded to be shown on the form.
- [OnPreLoad](https://eto.picoe.ca/api/type/eto.forms.toolbar/onpreload.md): Called when the tool item is removed from a form.
- [OnUnLoad](https://eto.picoe.ca/api/type/eto.forms.toolbar/onunload.md): Called when the tool item is removed from a form.

## Inherited Members

- From [BindableWidget](https://eto.picoe.ca/api/type/eto.forms.bindablewidget.md): [Bindings](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/bindings.md), [DataContext](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/datacontext.md), [IsDataContextChanging](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/isdatacontextchanging.md), [Parent](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/parent.md), [Parents](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/parents.md), [DataContextChanged](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/datacontextchanged.md), [FindParent](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/findparent.md), [OnDataContextChanged](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/ondatacontextchanged.md), [Unbind](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/unbind.md), [UpdateBindings](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/updatebindings.md)
- From [Widget](https://eto.picoe.ca/api/type/eto.widget.md): [ControlObject](https://eto.picoe.ca/api/type/eto.widget/controlobject.md), [Handler](https://eto.picoe.ca/api/type/eto.widget/handler.md), [ID](https://eto.picoe.ca/api/type/eto.widget/id.md), [IsDisposed](https://eto.picoe.ca/api/type/eto.widget/isdisposed.md), [NativeHandle](https://eto.picoe.ca/api/type/eto.widget/nativehandle.md), [Platform](https://eto.picoe.ca/api/type/eto.widget/platform.md), [Properties](https://eto.picoe.ca/api/type/eto.widget/properties.md), [Style](https://eto.picoe.ca/api/type/eto.widget/style.md), [StyleChanged](https://eto.picoe.ca/api/type/eto.widget/stylechanged.md), [Dispose](https://eto.picoe.ca/api/type/eto.widget/dispose.md), [GetCallback](https://eto.picoe.ca/api/type/eto.widget/getcallback.md), [Initialize](https://eto.picoe.ca/api/type/eto.widget/initialize.md), [OnStyleChanged](https://eto.picoe.ca/api/type/eto.widget/onstylechanged.md), [ToString](https://eto.picoe.ca/api/type/eto.widget/tostring.md)

## See Also

- [Window.ToolBar](https://eto.picoe.ca/api/type/eto.forms.window/toolbar.md)
