# ToolbarSection
Class
## About
`ToolbarSection` groups related toolbar items and acts as a wrapping boundary. Default section types build the editor's standard node, font, and formatting groups; `Custom` creates an empty application-managed section.
## Enumerations
| Name | Value | Description |
| --- | :---: | --- |
| Types | Nodes = 0 <br > Font = 1 <br > Formatting = 2 <br > Custom = 3 <br > Output = 4 | (None) |
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| Add | item As ToolbarItem | (None) | Adds the supplied item to the end of this toolbar section. |
| AddAt | index As Integer <br> item As ToolbarItem | (None) | Inserts the supplied item at the specified zero-based index. |
| Constructor | type As Types = Types.Custom | (None) | Creates a new toolbar section instance initialized from the supplied values. |
| IndexOf | item As ToolbarItem | Integer | Returns the zero-based index of the supplied item, or -1 when absent. |
| Item | identifier As String | ToolbarItem | Returns the toolbar item with the supplied identifier, or Nil when absent. |
| ItemAt | index As Integer | ToolbarItem | Returns the toolbar item at the specified zero-based index. |
| Items | (None) | ToolbarItem | Returns a copy of this section's toolbar items. |
| LastIndex | (None) | Integer | Returns the last zero-based item index, or -1 when there are no items. |
| Remove | identifier As String | (None) | Removes the matching item from this toolbar section. |
| Remove | item As ToolbarItem | (None) | Removes the matching item from this toolbar section. |
| RemoveAll | (None) | (None) | Removes every item from this toolbar section. |
| RemoveAt | index As Integer | (None) | Removes the item at the specified zero-based index. |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| Type | Types | (None) | Returns this toolbar section's configured type. |
| Visible | Boolean | (None) | Gets or sets whether this toolbar section is visible. |
## Notes
Use sections to keep related toolbar commands together visually and during wrapping.
### Item Management
Items remain mutable after insertion. Use `AddAt`, `RemoveAt`, and `RemoveAll` to control exact order. `Item` locates an item by its stable identifier without requiring the application to retain a separate reference.
A section receives its owner when it is added to a toolbar. Items added afterward inherit that owner automatically and can request an editor refresh when their visible properties change.