> ## 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.

# Toolbar Object (IToolbar Interface)

> Toolbar object (IToolbar interface) in ABBYY FineReader Engine Visual Components on Windows — The Toolbar object represents a toolbar of a Visual Component.

<Warning>
  Visual Components are implemented in FRE for Windows.
</Warning>

The Toolbar object represents a toolbar of a Visual Component.

The following Visual Components have a toolbar: [ImageViewer](/fine-reader/engine/visual-components-reference/imageviewer), [TextEditor](/fine-reader/engine/visual-components-reference/texteditor), [DocumentViewer](/fine-reader/engine/visual-components-reference/documentviewer). See the list of available commands and the commands which can be used in the toolbar:

* [Image Viewer commands](/fine-reader/engine/visual-components-reference/imageviewer/image-viewer-commands)

* [Text Editor commands](/fine-reader/engine/visual-components-reference/texteditor/text-editor-commands)

* [Document Viewer commands](/fine-reader/engine/visual-components-reference/documentviewer/document-viewer-commands)

* The indexing of ABBYY FineReader Engine collections starts with 0.

* The foreach statement in C# (for each in Visual Basic .NET) can be used to manipulate the collection.

## Properties

| Name                                                                                                      | Type                                                                                                              | Description                                                                               |
| --------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
| Count                                                                                                     | [int](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties), read-only | Retrieves the number of elements in the toolbar. The elements are buttons and separators. |
| [Element](/fine-reader/engine/visual-components-reference/supplementary-objects/toolbar/element-property) | [MenuItemEnum](/fine-reader/engine/visual-components-reference/enumerations/menuitemenum), read-only              | Returns the identifier of the toolbar element with the specified index.                   |

## Methods

| Name                                                                                                        | Description                                                                                                                                                                      |
| ----------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Delete](/fine-reader/engine/visual-components-reference/supplementary-objects/toolbar/delete-method)       | Removes the specified button or separator from the toolbar.                                                                                                                      |
| [DeleteAll](/fine-reader/engine/visual-components-reference/supplementary-objects/toolbar/deleteall-method) | Removes all elements from the toolbar.                                                                                                                                           |
| [DeleteAt](/fine-reader/engine/visual-components-reference/supplementary-objects/toolbar/deleteat-method)   | Removes the element with the specified position from the toolbar.                                                                                                                |
| [Has](/fine-reader/engine/visual-components-reference/supplementary-objects/toolbar/has-method)             | Allows you to find out whether the toolbar contains a button for the specified command.                                                                                          |
| [InsertAt](/fine-reader/engine/visual-components-reference/supplementary-objects/toolbar/insertat-method)   | Inserts the specified button or separator into the specified position in the toolbar.                                                                                            |
| [Item](/fine-reader/engine/visual-components-reference/supplementary-objects/toolbar/item-method)           | Returns the [MenuItemEnum](/fine-reader/engine/visual-components-reference/enumerations/menuitemenum) constant corresponding to the toolbar element with the specified position. |

## See also

[IImageViewer::Toolbar](/fine-reader/engine/visual-components-reference/imageviewer#toolbar)

[ITextEditor::Toolbar](/fine-reader/engine/visual-components-reference/texteditor#toolbar)

[IDocumentViewer::Toolbar](/fine-reader/engine/visual-components-reference/documentviewer#toolbar)

[Customizing the Context Menu and Toolbar of a Visual Component](/fine-reader/engine/guided-tour/advanced-techniques/using-gui-elements/customizing-the-context-menu-and-toolbar-of-a-visual-component)

[Working with Collections](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-collections)

[Working with Properties](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties)
