Method AddLabel
AddLabel(string?, string?, SvgImage?, Action?)
Adds a label to the toolbar.
public virtual SimpleToolBarView.IToolBarItem AddLabel(string? text, string? toolTip = null, SvgImage? image = null, Action? onClick = null)
Parameters
text
stringThe text to display on the label.
toolTip
stringThe tooltip text to display when the mouse hovers over the label.
image
SvgImageThe image to display on the label.
onClick
ActionThe action to perform when the label is clicked.
Returns
- SimpleToolBarView.IToolBarItem
The created label item.