RadioButtonExtensions
Wisej.Web.Markup.RadioButtonExtensions
Last updated
Was this helpful?
Wisej.Web.Markup.RadioButtonExtensions
Last updated
Was this helpful?
Namespace: Wisej.Web.Markup
Assembly: Wisej.Framework (4.0.0.0)
Adds fluent markup extension methods to the RadioButton class.
public class RadioButtonExtensions
Sets the Appearance property of the specified RadioButton.
Returns: TRadioButton. The modified radio button with the updated Appearance property.
This method allows you to specify the appearance of the radio button.
myRadioButton.Appearance(Appearance.Button);
Sets the AutoCheck property of the specified RadioButton.
Returns: TRadioButton. The modified radio button with the updated AutoCheck property.
This method allows you to enable or disable automatic checking of the radio button when it is clicked.
myRadioButton.AutoCheck(false);
Sets the AutoToolTip property of the specified RadioButton.
TRadioButton
The type of the radio button, must inherit from RadioButton and have an AutoToolTip property.
Returns: TRadioButton. The modified radio button with the updated AutoToolTip property.
This method allows you to enable or disable automatic tooltips for the radio button.
myRadioButton.AutoToolTip(true);
Sets the CheckAlign property of the specified RadioButton.
Returns: TRadioButton. The modified radio button with the updated CheckAlign property.
This method allows you to specify the alignment of the check mark within the radio button.
myRadioButton.CheckAlign(ContentAlignment.MiddleRight);
Sets the Checked property of the specified RadioButton.
Returns: TRadioButton. The modified radio button with the updated Checked property.
This method allows you to specify whether the radio button is checked.
myRadioButton.Checked(true);
Sets the CheckedForeColor property of the specified RadioButton.
TRadioButton
The type of the radio button, must inherit from RadioButton and have a CheckedForeColor property.
Returns: TRadioButton. The modified radio button with the updated CheckedForeColor property.
This method allows you to specify the text color when the radio button is checked.
myRadioButton.CheckedForeColor(Color.Red);
Sets the Invalid property of the specified RadioButton.
TRadioButton
The type of the radio button, must inherit from RadioButton and have an Invalid property.
Returns: TRadioButton. The modified radio button with the updated Invalid property.
This method allows you to specify whether the radio button is in an invalid state.
myRadioButton.Invalid(true);
Sets the InvalidMessage property of the specified RadioButton.
TRadioButton
The type of the radio button, must inherit from RadioButton and have an InvalidMessage property.
Returns: TRadioButton. The modified radio button with the updated InvalidMessage property.
This method allows you to specify a custom message to display when the radio button is in an invalid state.
myRadioButton.InvalidMessage("This option is not valid.");
Attaches an event handler for the AppearanceChanged event of the specified RadioButton.
Returns: TRadioButton. The modified radio button with the attached AppearanceChanged event handler.
This method allows you to execute a custom action whenever the appearance of the radio button changes.
myRadioButton.OnAppearanceChanged(rb =>
{
AlertBox.Show("Appearance changed!");
});
Attaches an event handler for the CheckedChanged event of the specified RadioButton.
Returns: TRadioButton. The modified radio button with the attached CheckedChanged event handler.
This method allows you to execute a custom action whenever the checked state of the radio button changes.
myRadioButton.OnCheckedChanged(rb =>
{
AlertBox.Show("Checked state changed!");
});
Attaches an event handler for the ReadOnlyChanged event of the specified RadioButton.
TRadioButton
The type of the radio button, must inherit from RadioButton and have a ReadOnlyChanged event.
Returns: TRadioButton. The modified radio button with the attached ReadOnlyChanged event handler.
This method allows you to execute a custom action whenever the read-only state of the radio button changes.
myRadioButton.OnReadOnlyChanged(rb =>
{
AlertBox.Show("Read-only state changed!");
});