Method AddSpeedBtn
AddSpeedBtn()
Adds an empty disabled SpeedButton to the control.
public virtual ObjectUniqueId AddSpeedBtn()
Returns
AddSpeedBtn(string, EventHandler?)
Adds a speed button with the specified text and click event handler.
public virtual ObjectUniqueId AddSpeedBtn(string text, EventHandler? action)
Parameters
textstringThe text to display on the button. Cannot be null or empty.
actionEventHandlerThe event handler to invoke when the button is clicked. Can be null if no action is required.
Returns
- ObjectUniqueId
The unique identifier of the created button, which can be used to reference the button later.
Remarks
This method creates a speed button with the specified text and
associates it with the
provided click event handler. If action is null,
the button will not perform any action
when clicked.
AddSpeedBtn(string?, SvgImage?, EventHandler?)
Adds SpeedButton with svg image.
public virtual ObjectUniqueId AddSpeedBtn(string? text, SvgImage? image, EventHandler? action)
Parameters
textstringItem text.
imageSvgImageItem image.
actionEventHandlerClick action.
Returns
- ObjectUniqueId
ObjectUniqueId of the added item.
AddSpeedBtn(string?, SvgImage?, string?, EventHandler?)
Adds SpeedButton to the control.
public virtual ObjectUniqueId AddSpeedBtn(string? text, SvgImage? image, string? toolTip = null, EventHandler? action = null)
Parameters
textstringItem text.
imageSvgImageItem image.
toolTipstringItem tooltip.
actionEventHandlerClick action.
Returns
- ObjectUniqueId
ObjectUniqueId of the added item.
AddSpeedBtn(string?, ImageSet?, ImageSet?, string?, EventHandler?)
Adds SpeedButton to the control.
public virtual ObjectUniqueId AddSpeedBtn(string? text, ImageSet? imageSet, ImageSet? imageSetDisabled = null, string? toolTip = null, EventHandler? action = null)
Parameters
textstringItem text.
imageSetImageSetItem image.
imageSetDisabledImageSetItem disabled image.
toolTipstringItem tooltip.
actionEventHandlerClick action.
Returns
- ObjectUniqueId
ObjectUniqueId of the added item.
AddSpeedBtn(KnownButton, SvgImage?, EventHandler?)
Adds a known speed button to the toolbar with optional svg override.
public virtual ObjectUniqueId AddSpeedBtn(KnownButton btn, SvgImage? svg, EventHandler? action = null)
Parameters
btnKnownButtonThe known button to add.
svgSvgImageThe SVG image associated with the button. This parameter can be used to specify optional image override.
actionEventHandlerThe action to perform when the button is clicked.
Returns
- ObjectUniqueId
The unique ID of the added button.
AddSpeedBtn(KnownButton, Action)
Adds known SpeedButton to the control with the specified action.
public ObjectUniqueId AddSpeedBtn(KnownButton button, Action action)
Parameters
buttonKnownButtonactionAction
Returns
AddSpeedBtn(KnownButton, EventHandler?)
Adds known SpeedButton to the control.
public virtual ObjectUniqueId AddSpeedBtn(KnownButton button, EventHandler? action = null)
Parameters
buttonKnownButtonactionEventHandler
Returns
AddSpeedBtn(params KnownButton[])
Adds array of known SpeedButton to the control.
public virtual ObjectUniqueId[] AddSpeedBtn(params KnownButton[] buttons)
Parameters
buttonsKnownButton[]
Returns
AddSpeedBtn(MessageBoxButtons)
Adds known SpeedButton to the control.
public virtual ObjectUniqueId[] AddSpeedBtn(MessageBoxButtons button)
Parameters
buttonMessageBoxButtons