<div class="meta" robots="noindex">

</div>

Class

# ToolItem (deprecated)

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2019r2. Please use `ToolbarItem</api/deprecated/toolbaritem>` as a replacement.

</div>

## Description

An item in a `Toolbar</api/deprecated/toolbar>`. An item is a style of `ToolbarButton</api/deprecated/toolbarbutton>`. Create each item with the `ToolbarButton</api/deprecated/toolbarbutton>` class and add each item to a `Toolbar</api/deprecated/toolbar>` via the Append or Insert methods.

## Properties

<div class="rst-class">

table-centered_columns_3_and_4

</div>

| Name                        | Type                               | Read-Only | Shared |
|-----------------------------|------------------------------------|-----------|--------|
| `Caption<toolitem.caption>` | `String</api/data_types/string>`   |           |        |
| `Enabled<toolitem.enabled>` | `Boolean</api/data_types/boolean>` |           |        |
| `HelpTag<toolitem.helptag>` | `String</api/data_types/string>`   |           |        |
| `Name<toolitem.name>`       | `String</api/data_types/string>`   |           |        |
| `Tag<toolitem.tag>`         | `Variant</api/data_types/variant>` |           |        |

## Property descriptions

<div id="toolitem.caption">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

ToolItem.Caption

**Caption** As `String</api/data_types/string>`

<div id="toolitem.enabled">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

ToolItem.Enabled

**Enabled** As `Boolean</api/data_types/boolean>`

`True</api/language/true>` if the <span class="title-ref">ToolItem</span> is enabled.

<div id="toolitem.helptag">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

ToolItem.HelpTag

**HelpTag** As `String</api/data_types/string>`

The help tip that is displayed when the pointer is over the <span class="title-ref">ToolItem</span>.

<div id="toolitem.name">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

ToolItem.Name

**Name** As `String</api/data_types/string>`

The name of the <span class="title-ref">ToolItem</span>.

<div id="toolitem.tag">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

ToolItem.Tag

**Tag** As `Variant</api/data_types/variant>`

A “hidden” value associated with the tool item.

The tag is accessible via code when the user chooses the tool item but, unlike the Caption property, is not displayed in the toolbar.

This example is in the Toolbar Open event of the main window.

``` xojo
Me.SaveButton.Tag = folderItemToSave
```

## Compatibility

All project types on all supported operating systems.

## See also

`Object</api/data_types/additional_types/object>` parent class; `Toolbar</api/deprecated/toolbar>`, `ToolbarButton</api/deprecated/toolbarbutton>` classes.
