ButtonExtensions
Wisej.Web.Markup.ButtonExtensions
Last updated
Was this helpful?
Wisej.Web.Markup.ButtonExtensions
Last updated
Was this helpful?
Namespace: Wisej.Web.Markup
Assembly: Wisej.Framework (4.0.0.0)
Adds extension methods to the , and classes.
Sets the AllowHtml property of the specified .
TButtonBase
button
The button for which to set the AllowHtml property.
value
A boolean indicating whether HTML is allowed in the button's text.
Returns: . The modified button with the updated AllowHtml property.
This method allows you to enable or disable HTML content in the button's text.
TButtonBase
button
The button for which to set the AllowMarkdown property.
value
A boolean indicating whether Markdown is allowed in the button's text.
This method allows you to enable or disable Markdown content in the button's text.
TButtonBase
button
The button for which to set the AutoEllipsis property.
value
A boolean indicating whether to automatically show ellipses when text is truncated.
This method allows you to enable or disable the automatic display of ellipses when the button's text is truncated.
TButtonBase
button
The button for which to set the AutoShowLoader property.
value
A boolean indicating whether to automatically show a loader on the button.
This method allows you to enable or disable the automatic display of a loader on the button.
TButton
button
The button for which to set the AutoSizeMode property.
mode
This method allows you to specify the automatic sizing behavior for the button.
TButton
button
The button for which to set the AutoToolTip property.
value
A boolean indicating whether tooltips are automatically shown for the button.
This method allows you to enable or disable automatic tooltips for the button.
TButton
button
The button for which to set the BorderStyle property.
borderStyle
This method allows you to specify the border style for the button.
TButtonBase
button
The button for which to set the CharacterCasing property.
casing
This method allows you to specify the character casing for the button's text.
TButton
button
The button for which to set the Display property.
display
This method allows you to specify the display setting for the button.
TButton
button
The button for which to set the ImageSpacing property.
spacing
The spacing to set between the image and text on the button.
This method allows you to specify the spacing between the image and text on the button.
TButton
button
The button to which the menu items should be added.
items
This method allows you to add multiple menu items to the button in one call.
TButton
button
The button to attach the event handler to.
action
An action to execute when an item is clicked.
This method allows you to execute a custom action whenever an item within the button's menu is clicked.
TButton
button
The button to attach the event handler to.
action
An action to execute when the menu collapses.
This method allows you to execute a custom action whenever the button's menu collapses.
TButton
button
The button to attach the event handler to.
action
An action to execute when the menu pops up.
This method allows you to execute a custom action whenever the button's menu pops up.
TSplitButton
button
The split button for which to set the Orientation property.
orientation
This method allows you to specify the orientation of the split button, such as horizontal or vertical.
TButton
button
The button for which to set the Repeat property.
value
A boolean indicating whether the button repeats its action when held down.
This method allows you to enable or disable repeating actions for the button when it is held down.
TButton
button
The button for which to set the Shortcut property.
shortcut
This method allows you to specify a keyboard shortcut for the button.
TButtonBase
button
The button for which to set the TextAlign property.
alignment
This method allows you to specify the alignment of the text on the button.
TButtonBase
button
The button for which to set the TextImageRelation property.
textImageRelation
This method allows you to specify the relationship between the button's text and image.
TButtonBase
button
The button for which to set the UseMnemonic property.
value
A boolean indicating whether mnemonic characters are used.
This method allows you to enable or disable the use of mnemonic characters in the button's text.
The type of the button, must inherit from .
Sets the AllowMarkdown property of the specified .
The type of the button, must inherit from .
Returns: . The modified button with the updated AllowMarkdown property.
Sets the AutoEllipsis property of the specified .
The type of the button, must inherit from .
Returns: . The modified button with the updated AutoEllipsis property.
Sets the AutoShowLoader property of the specified .
The type of the button, must inherit from .
Returns: . The modified button with the updated AutoShowLoader property.
Sets the AutoSizeMode property of the specified .
The type of the button, must inherit from .
The to set for the button.
Returns: . The modified button with the updated AutoSizeMode property.
Sets the AutoToolTip property of the specified .
The type of the button, must inherit from and have an AutoToolTip property.
Returns: . The modified button with the updated AutoToolTip property.
Sets the BorderStyle property of the specified .
The type of the button, must inherit from and have a BorderStyle property.
The to set for the button.
Returns: . The modified button with the updated BorderStyle property.
Sets the CharacterCasing property of the specified .
The type of the button, must inherit from .
The to set for the button text.
Returns: . The modified button with the updated CharacterCasing property.
Sets the Display property of the specified .
The type of the button, must inherit from and have a Display property.
The setting to apply to the button.
Returns: . The modified button with the updated Display property.
Sets the ImageSpacing property of the specified .
The type of the button, must inherit from and have an ImageSpacing property.
Returns: . The modified button with the updated ImageSpacing property.
Adds the specified menu items to the MenuItems collection of the specified .
The type of the button, must inherit from and have a MenuItems property.
An array of to add to the button.
Returns: . The modified button with the added menu items.
Attaches an event handler for the ItemClicked event of the specified .
The type of the button, must inherit from and have an ItemClicked event.
Returns: . The modified button with the attached ItemClicked event handler.
Attaches an event handler for the MenuCollapse event of the specified .
The type of the button, must inherit from and have a MenuCollapse event.
Returns: . The modified button with the attached MenuCollapse event handler.
Attaches an event handler for the MenuPopup event of the specified .
The type of the button, must inherit from and have a MenuPopup event.
Returns: . The modified button with the attached MenuPopup event handler.
Sets the Orientation property of the specified .
The type of the button, must inherit from .
The to set for the button.
Returns: . The modified button with the updated Orientation property.
Sets the Repeat property of the specified .
The type of the button, must inherit from and have a Repeat property.
Returns: . The modified button with the updated Repeat property.
Sets the Shortcut property of the specified .
The type of the button, must inherit from and have a Shortcut property.
The to set for the button.
Returns: . The modified button with the updated Shortcut property.
Sets the TextAlign property of the specified .
The type of the button, must inherit from .
The to set for the button text.
Returns: . The modified button with the updated TextAlign property.
Sets the TextImageRelation property of the specified .
The type of the button, must inherit from .
The to set for the button.
Returns: . The modified button with the updated TextImageRelation property.
Sets the UseMnemonic property of the specified .
The type of the button, must inherit from .
Returns: . The modified button with the updated UseMnemonic property.