ToolbarItem.Caption
From Xojo Documentation
Property (As String )
aToolbarItem.Caption = newStringValue
or
StringValue = aToolbarItem.Caption
New in 2019r2
Supported for all project types and targets.
or
StringValue = aToolbarItem.Caption
New in 2019r2
Supported for all project types and targets.
The caption of the ToolbarItem.
Notes
This property can be set inside the IDE or programmatically.
To set an accelerator character, precede the character in the Caption with an ampersand. In order to show an ampersand in the Caption, use two ampersands in a row.
Sample Code
This code sets the caption of the ToolBarItem to "Bold".
Me.Caption = "Bold"