# ToolItem class

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

```cs
[TypeConverter(ToolItemConverter)]
public abstract class ToolItem : Tool, ICommandItem
```

Base tool item class for a [ToolBar](https://eto.picoe.ca/api/type/eto.forms.toolbar.md).

**Derived types:** [ButtonToolItem](https://eto.picoe.ca/api/type/eto.forms.buttontoolitem.md), [CheckToolItem](https://eto.picoe.ca/api/type/eto.forms.checktoolitem.md), [DropDownToolItem](https://eto.picoe.ca/api/type/eto.forms.dropdowntoolitem.md), [RadioToolItem](https://eto.picoe.ca/api/type/eto.forms.radiotoolitem.md), [SeparatorToolItem](https://eto.picoe.ca/api/type/eto.forms.separatortoolitem.md)

## Constructors

- [ToolItem](https://eto.picoe.ca/api/type/eto.forms.toolitem/ctor.md): (2 overloads) Initializes a new instance of the [ToolItem](https://eto.picoe.ca/api/type/eto.forms.toolitem.md) class.

## Properties

- [Command](https://eto.picoe.ca/api/type/eto.forms.toolitem/command.md): Gets or sets the command to invoke when the tool item is pressed.
- [CommandParameter](https://eto.picoe.ca/api/type/eto.forms.toolitem/commandparameter.md): Gets or sets the parameter to pass to the [ToolItem.Command](https://eto.picoe.ca/api/type/eto.forms.toolitem/command.md) when executing or determining its CanExecute state.
- [Enabled](https://eto.picoe.ca/api/type/eto.forms.toolitem/enabled.md): Gets or sets a value indicating whether this [ToolItem](https://eto.picoe.ca/api/type/eto.forms.toolitem.md) is enabled.
- [Image](https://eto.picoe.ca/api/type/eto.forms.toolitem/image.md): Gets or sets the image for the tool item.
- [Order](https://eto.picoe.ca/api/type/eto.forms.toolitem/order.md): Gets or sets the order of the tool item when adding to the [ToolItemCollection](https://eto.picoe.ca/api/type/eto.forms.toolitemcollection.md).
- [Tag](https://eto.picoe.ca/api/type/eto.forms.toolitem/tag.md): Gets or sets a user-defined tag for the tool item.
- [Text](https://eto.picoe.ca/api/type/eto.forms.toolitem/text.md): Gets or sets the text of the item, with mnemonic.
- [ToolTip](https://eto.picoe.ca/api/type/eto.forms.toolitem/tooltip.md): Gets or sets the tool tip to show when hovering the mouse over the item.
- [Visible](https://eto.picoe.ca/api/type/eto.forms.toolitem/visible.md): Gets or sets a value indicating whether this `ToolItem` is visible.

## Methods

- [OnClick](https://eto.picoe.ca/api/type/eto.forms.toolitem/onclick.md): Raises the [ToolItem.Click](https://eto.picoe.ca/api/type/eto.forms.toolitem/click.md) event.
- [Unbind](https://eto.picoe.ca/api/type/eto.forms.toolitem/unbind.md): Unbinds any bindings in the [BindableWidget.Bindings](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/bindings.md) collection and removes the bindings

## Events

- [Click](https://eto.picoe.ca/api/type/eto.forms.toolitem/click.md): Occurs when the user clicks on the item.

## Inherited Members

- From [Tool](https://eto.picoe.ca/api/type/eto.forms.tool.md): [OnLoad](https://eto.picoe.ca/api/type/eto.forms.tool/onload.md), [OnPreLoad](https://eto.picoe.ca/api/type/eto.forms.tool/onpreload.md), [OnUnLoad](https://eto.picoe.ca/api/type/eto.forms.tool/onunload.md)
- 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), [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)
