Skip to main content
Visual Components are implemented in FRE for Windows.
The Toolbar object represents a toolbar of a Visual Component. The following Visual Components have a toolbar: ImageViewer, TextEditor, DocumentViewer. See the list of available commands and the commands which can be used in the toolbar:

Properties

NameTypeDescription
Countint, read-onlyRetrieves the number of elements in the toolbar. The elements are buttons and separators.
ElementMenuItemEnum, read-onlyReturns the identifier of the toolbar element with the specified index.

Methods

NameDescription
DeleteRemoves the specified button or separator from the toolbar.
DeleteAllRemoves all elements from the toolbar.
DeleteAtRemoves the element with the specified position from the toolbar.
HasAllows you to find out whether the toolbar contains a button for the specified command.
InsertAtInserts the specified button or separator into the specified position in the toolbar.
ItemReturns the MenuItemEnum constant corresponding to the toolbar element with the specified position.

See also

IImageViewer::Toolbar ITextEditor::Toolbar IDocumentViewer::Toolbar Customizing the Context Menu and Toolbar of a Visual Component Working with Collections Working with Properties