Class ExRadioButton
- Namespace
- ExControls
- Assembly
- ExControls.dll
Extended RadioButton control: in the custom style it draws the circle, the mark and the text itself with its own colors, including the text color of a disabled radio button.
[ToolboxBitmap(typeof(ToolboxIcons), "Toolbox.ExRadioButton.ico")]
public class ExRadioButton : RadioButton, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IExControl, ICheckableExControl, IThemeable
- Inheritance
-
ExRadioButton
- Implements
- Inherited Members
- Extension Methods
Constructors
ExRadioButton()
Initializes a new instance of the ExRadioButton class in the default style.
public ExRadioButton()
Properties
BorderColor
Color of the RadioButton's border.
[Browsable(true)]
[ExCategory(CategoryType.Appearance)]
[ExDescription("Color of the RadioButton's border.")]
public Color BorderColor { get; set; }
Property Value
BoxBackColor
Background color of RadioButton's circle.
[Browsable(true)]
[ExCategory(CategoryType.Appearance)]
[ExDescription("Background color of RadioButton's circle.")]
public Color BoxBackColor { get; set; }
Property Value
DefaultStyle
Gets or sets whether the control uses the default Windows style; false = the custom style drawn by the control with its own colors.
[Browsable(true)]
[ExCategory(CategoryType.Appearance)]
[ExDescription("Default style of the Control.")]
public bool DefaultStyle { get; set; }
Property Value
DisabledForeColor
Color of the RadioButton's text and box when the Control is disabled.
[Browsable(true)]
[ExCategory(CategoryType.Appearance)]
[ExDescription("Color of the CheckBox's text and box when the Control is disabled.")]
public Color DisabledForeColor { get; set; }
Property Value
HighlightColor
Color of the border and mark of RadioButton when mouse is over the Control.
[Browsable(true)]
[ExCategory(CategoryType.Appearance)]
[ExDescription("Color of the border and mark of RadioButton when mouse is over the Control.")]
public Color HighlightColor { get; set; }
Property Value
MarkColor
Color of the RadioButton's mark.
[Browsable(true)]
[ExCategory(CategoryType.Appearance)]
[ExDescription("Color of the RadioButton's mark.")]
public Color MarkColor { get; set; }
Property Value
Methods
ApplyTheme(ExTheme)
Sets the colors and appearance of the control by the theme.
public void ApplyTheme(ExTheme theme)
Parameters
themeExTheme
OnBorderColorChanged()
Raises the BorderColorChanged event.
protected virtual void OnBorderColorChanged()
OnBoxBackColorChanged()
Raises the BoxBackColorChanged event.
protected virtual void OnBoxBackColorChanged()
OnCreateControl()
Raises the CreateControl() method.
protected override void OnCreateControl()
OnDefaultStyleChanged()
Raises the DefaultStyleChanged event.
protected virtual void OnDefaultStyleChanged()
OnDisabledForeColorChanged()
Raises the DisabledForeColorChanged event.
protected virtual void OnDisabledForeColorChanged()
OnHighlightColorChanged()
Raises the HighlightColorChanged event.
protected virtual void OnHighlightColorChanged()
OnMarkColorChanged()
Raises the MarkColorChanged event.
protected virtual void OnMarkColorChanged()
OnMouseEnter(EventArgs)
Raises the OnMouseEnter(EventArgs) event.
protected override void OnMouseEnter(EventArgs eventargs)
Parameters
OnMouseLeave(EventArgs)
Raises the OnMouseLeave(EventArgs) event.
protected override void OnMouseLeave(EventArgs eventargs)
Parameters
OnPaint(PaintEventArgs)
Raises the OnPaint(PaintEventArgs) event.
protected override void OnPaint(PaintEventArgs pevent)
Parameters
peventPaintEventArgsA PaintEventArgs that contains the event data.
Events
BorderColorChanged
Occurs when the BorderColor property changes.
[ExCategory("Changed Property")]
[ExDescription("Occurs when the BorderColor property changes.")]
public event EventHandler? BorderColorChanged
Event Type
BoxBackColorChanged
Occurs when the BoxBackColor property changes.
[ExCategory("Changed Property")]
[ExDescription("Occurs when the BoxBackColor property changes.")]
public event EventHandler? BoxBackColorChanged
Event Type
DefaultStyleChanged
Occurs when the DefaultStyle property changes.
[ExCategory("Changed Property")]
[ExDescription("Occurs when the BorderColor property changes.")]
public event EventHandler? DefaultStyleChanged
Event Type
DisabledForeColorChanged
Occurs when the DisabledForeColor property changes.
[ExCategory("Changed Property")]
[ExDescription("Occurs when the DisabledForeColor property changes.")]
public event EventHandler? DisabledForeColorChanged
Event Type
HighlightColorChanged
Occurs when the HighlightColor property changes.
[ExCategory("Changed Property")]
[ExDescription("Occurs when the HighlightColor property changes.")]
public event EventHandler? HighlightColorChanged
Event Type
MarkColorChanged
Occurs when the MarkColor property changes.
[ExCategory("Changed Property")]
[ExDescription("Occurs when the MarkColor property changes.")]
public event EventHandler? MarkColorChanged