> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# IToolbar

> IToolbar object for FlexiCapture station scripting: a collection of IToolbarButton items with methods to append, insert, find, delete, and reset buttons.

## What it does

A collection of [IToolbarButton](/flexi-capture/appendix/scripts-shell/itoolbarbutton) objects. Represents a toolbar.

## Methods

<table width="100%"><thead><tr><th><p><strong>Definition</strong></p></th><th><p><strong>Description</strong></p></th></tr></thead><tbody><tr><td><p>AppendButton( commandId : <a href="/flexi-capture/appendix/scripts-shell/tcommandid">TCommandID</a>, text : string ) : <a href="/flexi-capture/appendix/scripts-shell/itoolbarbutton">IToolbarButton</a></p></td><td><p>Appends a toolbar item with the command identifier <strong>commandId</strong> and the text <strong>Text</strong> at the end of the toolbar. Returns the <a href="/flexi-capture/appendix/scripts-shell/itoolbarbutton">IToolbarButton</a> object of the corresponding element.</p><p>Any command identifiers from the <a href="/flexi-capture/appendix/scripts-shell/tcommandid">TCommandID</a> enumeration may be used (including <strong>CI\_SubMenu</strong> and <strong>CI\_Separator</strong>), except for <strong>CI\_Undefined</strong>. For <strong>CI\_Separator</strong>, the <strong>Text</strong> parameter will be ignored.</p></td></tr><tr><td><p>Delete( Index : int )</p></td><td><p>Deletes an item by its index in the collection.</p></td></tr><tr><td><p>Find( commandId : <a href="/flexi-capture/appendix/scripts-shell/tcommandid">TCommandID</a> ) : int</p></td><td><p>Searches for the index of the button with a specified identifier in the collection.</p></td></tr><tr><td><p>InsertButton( index : int, commandId : <a href="/flexi-capture/appendix/scripts-shell/tcommandid">TCommandID</a>, text : string ) : <a href="/flexi-capture/appendix/scripts-shell/itoolbarbutton">IToolbarButton</a></p></td><td><p>Inserts a toolbar item with the command identifier <strong>commandId</strong> and the text <strong>Text</strong> in the position Index of the toolbar. Returns the <a href="/flexi-capture/appendix/scripts-shell/itoolbarbutton">IToolbarButton</a> object of the corresponding element.</p><p>Any command identifiers from the <a href="/flexi-capture/appendix/scripts-shell/tcommandid">TCommandID</a> enumeration may be used (including <strong>CI\_SubMenu</strong> and <strong>CI\_Separator</strong>), except for <strong>CI\_Undefined</strong>. For <strong>CI\_Separator</strong>, the <strong>Text</strong> parameter will be ignored.</p></td></tr><tr><td><p>Reset()</p></td><td><p>Resets all changes and restores the original view of the toolbar.</p></td></tr></tbody></table>

## Properties

| **Name** | **Type**                                                                 | **Access** | **Description**                          |
| -------- | ------------------------------------------------------------------------ | ---------- | ---------------------------------------- |
| Name     | string                                                                   | Read-only  | The name of the toolbar                  |
| Type     | [TCommandBarType](/flexi-capture/appendix/scripts-shell/tcommandbartype) | Read-only  | The type of the toolbar                  |
| Visible  | bool                                                                     | Read/write | Specifies whether the toolbar is visible |
