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
textstringThe text to display on the label.
toolTipstringThe tooltip text to display when the mouse hovers over the label.
imageSvgImageThe image to display on the label.
onClickActionThe action to perform when the label is clicked.
Returns
- SimpleToolBarView.IToolBarItem
The created label item.