Table of Contents

Method AddSpeedBtn

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

AddSpeedBtn()

Adds an empty disabled SpeedButton to the control.

public virtual ObjectUniqueId AddSpeedBtn()

Returns

ObjectUniqueId

AddSpeedBtn(string, EventHandler?)

Adds a speed button with the specified text and click event handler.

public virtual ObjectUniqueId AddSpeedBtn(string text, EventHandler? action)

Parameters

text string

The text to display on the button. Cannot be null or empty.

action EventHandler

The 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

text string

Item text.

image SvgImage

Item image.

action EventHandler

Click 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

text string

Item text.

image SvgImage

Item image.

toolTip string

Item tooltip.

action EventHandler

Click 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

text string

Item text.

imageSet ImageSet

Item image.

imageSetDisabled ImageSet

Item disabled image.

toolTip string

Item tooltip.

action EventHandler

Click 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

btn KnownButton

The known button to add.

svg SvgImage

The SVG image associated with the button. This parameter can be used to specify optional image override.

action EventHandler

The 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

button KnownButton
action Action

Returns

ObjectUniqueId

AddSpeedBtn(KnownButton, EventHandler?)

Adds known SpeedButton to the control.

public virtual ObjectUniqueId AddSpeedBtn(KnownButton button, EventHandler? action = null)

Parameters

button KnownButton
action EventHandler

Returns

ObjectUniqueId

AddSpeedBtn(params KnownButton[])

Adds array of known SpeedButton to the control.

public virtual ObjectUniqueId[] AddSpeedBtn(params KnownButton[] buttons)

Parameters

buttons KnownButton[]

Returns

ObjectUniqueId[]

AddSpeedBtn(MessageBoxButtons)

Adds known SpeedButton to the control.

public virtual ObjectUniqueId[] AddSpeedBtn(MessageBoxButtons button)

Parameters

button MessageBoxButtons

Returns

ObjectUniqueId[]