# ToolbarItems
Class
## About
`ToolbarItems` holds application toolbar items the user can add from the toolbar customizer without their being on a toolbar by default, keyed by `ToolbarItem.Identifier`. Each `Editor` creates an empty one; read it from the editor's read-only `ToolbarItems` property.
```xojo
Var exportItem As New GraffitiProEditor.ToolbarItem("app:export", "Export")
Editor.ToolbarItems.Add(exportItem)
```
Items already on a toolbar, the built-in items, and registered node types are offered without being added here. `Editor.AvailableToolbarItems` returns everything the customizer offers, including these items. `LoadToolbarState` can place an item from this list. Adding an item sets its `Owner` to the editor; removing it leaves the item unchanged, since it may still be on a toolbar.
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| Add | item As GraffitiProEditor.ToolbarItem | (None) | Adds a toolbar item to the end of the list. A toolbar item with the same identifier is replaced in place. |
| AddAt | index As Integer <br> item As GraffitiProEditor.ToolbarItem | (None) | Inserts a toolbar item at a zero-based position, removing any toolbar item with the same identifier first. |
| IndexOf | item As GraffitiProEditor.ToolbarItem | Integer | Returns the position of the supplied toolbar item, or -1 when it is not in the list. |
| Item | identifier As String | GraffitiProEditor.ToolbarItem | Returns the toolbar item with the supplied identifier, or Nil. |
| ItemAt | index As Integer | GraffitiProEditor.ToolbarItem | Returns the toolbar item at a zero-based position, or Nil when the position is out of range. |
| Items | (None) | GraffitiProEditor.ToolbarItem | Returns a copy of the list of toolbar items, in order. |
| LastIndex | (None) | Integer | Returns the position of the last toolbar item, or -1 when the list is empty. |
| Remove | item As GraffitiProEditor.ToolbarItem | (None) | Removes the supplied toolbar item, if it is in the list. |
| Remove | identifier As String | (None) | Removes the toolbar item with the supplied identifier, if there is one. |
| RemoveAll | (None) | (None) | Removes every toolbar item. |
| RemoveAt | index As Integer | (None) | Removes the toolbar item at a zero-based position. A position out of range does nothing. |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| Owner | GraffitiProEditor.Editor | (None) | Returns the editor this list belongs to. |