Class ExCheckBox
- Namespace
- ExControls
- Assembly
- ExControls.dll
Extended CheckBox control: in the custom style it draws the box, the check mark and the text itself with its own colors, including the text color of a disabled check box.
[ToolboxBitmap(typeof(ToolboxIcons), "Toolbox.ExCheckBox.ico")]
public class ExCheckBox : CheckBox, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IExControl, ICheckableExControl, IThemeable
- Inheritance
-
ExCheckBox
- Implements
- Inherited Members
- Extension Methods
Constructors
ExCheckBox()
Initializes a new instance of the ExCheckBox class in the default style.
public ExCheckBox()
Properties
BorderColor
Color of the CheckBox's border
[Browsable(true)]
[ExCategory(CategoryType.Appearance)]
[ExDescription("Color of the CheckBox's border.")]
public Color BorderColor { get; set; }
Property Value
BoxBackColor
Background color of CheckBox's square
[Browsable(true)]
[ExCategory(CategoryType.Appearance)]
[ExDescription("Background color of CheckBox's square.")]
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 CheckBox'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 CheckBox when mouse is over the Control.
[Browsable(true)]
[ExCategory(CategoryType.Appearance)]
[ExDescription("Color of the border and mark of CheckBox when mouse is over the Control.")]
public Color HighlightColor { get; set; }
Property Value
MarkColor
Color of the CheckBox's mark
[Browsable(true)]
[ExCategory(CategoryType.Appearance)]
[ExDescription("Color of the CheckBox'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 DefaultStyle 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