Method toolbar.Add
Overload
Adds button. Same as toolbar.this[].
public TBItem Add(string text, Action<TBItem> click, MTImage image = default, int l_ = 0, string f_ = null)
Parameters
text (string)
Text. Or |
click (Action<TBItem>)
Action called when the button clicked. |
image (MTImage)
Image. Read here: MTBase. |
l_ (int) |
f_ (string) |
Returns
Remarks
More properties can be specified later (set properties of the returned TBItem or use toolbar.Items) or before (MTBase.ActionThread, MTBase.ActionException, MTBase.ExtractIconPathFromCode, MTBase.PathInTooltip).