Skip to main content
Version: 4.1

ToolBarButtonExtensions

Namespace: Wisej.Web.Markup

Assembly: Wisej.Framework (4.1.0.0)

Adds fluent markup extension methods to the ToolBarButton class.

public class ToolBarButtonExtensions

Methods

Static member AllowHtml<TToolBarButton>(toolbarButton, allow)

Sets whether HTML is allowed in the text of the ToolBarButton.

ParameterTypeDescription
TToolBarButtonThe type of the toolbar button.
toolbarButtonTToolBarButtonThe toolbar button to extend.
allowBooleanA value indicating whether HTML is allowed.

Returns: TToolBarButton. The modified toolbar button.

Static member AppearanceKey<TToolBarButton>(toolbarButton, appearanceKey)

Sets the appearance key of the ToolBarButton.

ParameterTypeDescription
TToolBarButtonThe type of the toolbar button.
toolbarButtonTToolBarButtonThe toolbar button to extend.
appearanceKeyStringThe appearance key to set.

Returns: TToolBarButton. The modified toolbar button.

Static member AutoShowLoader<TToolBarButton>(toolbarButton, autoShowLoader)

Sets whether the loader is automatically shown for the ToolBarButton.

ParameterTypeDescription
TToolBarButtonThe type of the toolbar button.
toolbarButtonTToolBarButtonThe toolbar button to extend.
autoShowLoaderBooleanA value indicating whether the loader is automatically shown.

Returns: TToolBarButton. The modified toolbar button.

Sets the DropDownMenu of the ToolBarButton.

ParameterTypeDescription
TToolBarButtonThe type of the toolbar button.
toolbarButtonTToolBarButtonThe toolbar button to extend.
dropDownMenuContextMenuThe drop-down menu to associate.

Returns: TToolBarButton. The modified toolbar button.

Static member Enabled<TToolBarButton>(toolbarButton, enabled)

Sets the enabled state of the ToolBarButton.

ParameterTypeDescription
TToolBarButtonThe type of the toolbar button.
toolbarButtonTToolBarButtonThe toolbar button to extend.
enabledBooleanA value indicating whether the button is enabled.

Returns: TToolBarButton. The modified toolbar button.

Static member ForeColor<TToolBarButton>(toolbarButton, color)

Sets the foreground color of the ToolBarButton.

ParameterTypeDescription
TToolBarButtonThe type of the toolbar button.
toolbarButtonTToolBarButtonThe toolbar button to extend.
colorColorThe color to set.

Returns: TToolBarButton. The modified toolbar button.

Static member Image<TToolBarButton>(toolbarButton, image)

Sets the image of the ToolBarButton.

ParameterTypeDescription
TToolBarButtonThe type of the toolbar button.
toolbarButtonTToolBarButtonThe toolbar button to extend.
imageImageThe image to set.

Returns: TToolBarButton. The modified toolbar button.

Static member ImageIndex<TToolBarButton>(toolbarButton, imageIndex)

Sets the image index of the ToolBarButton.

ParameterTypeDescription
TToolBarButtonThe type of the toolbar button.
toolbarButtonTToolBarButtonThe toolbar button to extend.
imageIndexInt32The zero-based index of the image to set.

Returns: TToolBarButton. The modified toolbar button.

Static member ImageKey<TToolBarButton>(toolbarButton, imageKey)

Sets the image key of the ToolBarButton.

ParameterTypeDescription
TToolBarButtonThe type of the toolbar button.
toolbarButtonTToolBarButtonThe toolbar button to extend.
imageKeyStringThe image key to set.

Returns: TToolBarButton. The modified toolbar button.

Static member ImageSource<TToolBarButton>(toolbarButton, imageSource)

Sets the image source of the ToolBarButton.

ParameterTypeDescription
TToolBarButtonThe type of the toolbar button.
toolbarButtonTToolBarButtonThe toolbar button to extend.
imageSourceStringThe image source URL or path to set.

Returns: TToolBarButton. The modified toolbar button.

Static member Margin<TToolBarButton>(toolbarButton, margin)

Sets the margin of the ToolBarButton.

ParameterTypeDescription
TToolBarButtonThe type of the toolbar button.
toolbarButtonTToolBarButtonThe toolbar button to extend.
marginPaddingThe margin to set.

Returns: TToolBarButton. The modified toolbar button.

Static member Margin<TToolBarButton>(toolbarButton, left, top, right, bottom)

Sets the margin of the ToolBarButton using individual values.

ParameterTypeDescription
TToolBarButtonThe type of the toolbar button.
toolbarButtonTToolBarButtonThe toolbar button to extend.
leftInt32The left margin.
topInt32The top margin.
rightInt32The right margin.
bottomInt32The bottom margin.

Returns: TToolBarButton. The modified toolbar button.

Static member Name<TToolBarButton>(toolbarButton, name)

Sets the name of the ToolBarButton.

ParameterTypeDescription
TToolBarButtonThe type of the toolbar button.
toolbarButtonTToolBarButtonThe toolbar button to extend.
nameStringThe name to set.

Returns: TToolBarButton. The modified toolbar button.

Static member OnClick<TToolBarButton>(toolbarButton, action)

Attaches an action to the Click event of the ToolBarButton.

ParameterTypeDescription
TToolBarButtonThe type of the toolbar button.
toolbarButtonTToolBarButtonThe toolbar button to extend.
actionAction<TToolBarButton>The action to perform when the button is clicked.

Returns: TToolBarButton. The modified toolbar button.

Static member OnPushedChanged<TToolBarButton>(toolbarButton, action)

Attaches an action to the PushedChanged event of the ToolBarButton.

ParameterTypeDescription
TToolBarButtonThe type of the toolbar button.
toolbarButtonTToolBarButtonThe toolbar button to extend.
actionAction<TToolBarButton>The action to perform when the pushed state changes.

Returns: TToolBarButton. The modified toolbar button.

Static member Padding<TToolBarButton>(toolbarButton, padding)

Sets the padding of the ToolBarButton.

ParameterTypeDescription
TToolBarButtonThe type of the toolbar button.
toolbarButtonTToolBarButtonThe toolbar button to extend.
paddingPaddingThe padding to set.

Returns: TToolBarButton. The modified toolbar button.

Static member Padding<TToolBarButton>(toolbarButton, left, top, right, bottom)

Sets the padding of the ToolBarButton with specified left, top, right, and bottom values.

ParameterTypeDescription
TToolBarButtonThe type of the toolbar button.
toolbarButtonTToolBarButtonThe toolbar button to extend.
leftInt32The left padding.
topInt32The top padding.
rightInt32The right padding.
bottomInt32The bottom padding.

Returns: TToolBarButton. The modified toolbar button.

Static member Pushed<TToolBarButton>(toolbarButton, pushed)

Sets the pushed state of the ToolBarButton.

ParameterTypeDescription
TToolBarButtonThe type of the toolbar button.
toolbarButtonTToolBarButtonThe toolbar button to extend.
pushedBooleanA value indicating whether the button is pushed.

Returns: TToolBarButton. The modified toolbar button.

Static member SizeMode<TToolBarButton>(toolbarButton, sizeMode)

Sets the size mode of the ToolBarButton.

ParameterTypeDescription
TToolBarButtonThe type of the toolbar button.
toolbarButtonTToolBarButtonThe toolbar button to extend.
sizeModeToolBarButtonSizeModeThe size mode to set.

Returns: TToolBarButton. The modified toolbar button.

Static member Style<TToolBarButton>(toolbarButton, style)

Sets the style of the ToolBarButton.

ParameterTypeDescription
TToolBarButtonThe type of the toolbar button.
toolbarButtonTToolBarButtonThe toolbar button to extend.
styleToolBarButtonStyleThe style to set.

Returns: TToolBarButton. The modified toolbar button.

Static member Tag<TToolBarButton>(toolbarButton, obj)

Sets the tag object of the ToolBarButton.

ParameterTypeDescription
TToolBarButtonThe type of the toolbar button.
toolbarButtonTToolBarButtonThe toolbar button to extend.
objObjectThe object to set as the tag.

Returns: TToolBarButton. The modified toolbar button.

Static member Text<TToolBarButton>(toolbarButton, text)

Sets the text of the ToolBarButton.

ParameterTypeDescription
TToolBarButtonThe type of the toolbar button.
toolbarButtonTToolBarButtonThe toolbar button to extend.
textStringThe text to set.

Returns: TToolBarButton. The modified toolbar button.

Static member Text<TToolBarButton>(toolbarButton, visible)

Sets the visibility of the ToolBarButton.

ParameterTypeDescription
TToolBarButtonThe type of the toolbar button.
toolbarButtonTToolBarButtonThe toolbar button to extend.
visibleBooleanA value indicating whether the button is visible.

Returns: TToolBarButton. The modified toolbar button.

Static member ToolTipText<TToolBarButton>(toolbarButton, toolTipText)

Sets the tooltip text of the ToolBarButton.

ParameterTypeDescription
TToolBarButtonThe type of the toolbar button.
toolbarButtonTToolBarButtonThe toolbar button to extend.
toolTipTextStringThe tooltip text to set.

Returns: TToolBarButton. The modified toolbar button.