Class ExCheckedListBox
- Namespace
- ExControls
- Assembly
- ExControls.dll
Extended CheckedListBox control: in the custom style it draws the items with its own box, check mark, highlight and focus colors.
[ToolboxBitmap(typeof(ToolboxIcons), "Toolbox.ExCheckedListBox.ico")]
public class ExCheckedListBox : CheckedListBox, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IExControl, IThemeable
- Inheritance
-
ExCheckedListBox
- Implements
- Inherited Members
- Extension Methods
Constructors
ExCheckedListBox()
Initializes a new instance of the ExCheckedListBox class in the default style.
public ExCheckedListBox()
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
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
Foreground color of text if Control is disabled
[Browsable(true)]
[ExCategory(CategoryType.Appearance)]
[ExDescription("Foreground color of text if Control is disabled.")]
public Color DisabledForeColor { get; set; }
Property Value
FocusedBackColor
Background color of focused row in ListBox
[Browsable(true)]
[ExCategory(CategoryType.Appearance)]
[ExDescription("Background color of focused row in ListBox.")]
public Color FocusedBackColor { 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
SquareBackColor
Background color of CheckBox's square
[Browsable(true)]
[ExCategory(CategoryType.Appearance)]
[ExDescription("Background color of CheckBox's square.")]
public Color SquareBackColor { 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
OnCreateControl()
Raises the CreateControl() method.
protected override void OnCreateControl()
OnDefaultStyleChanged()
Raises the DefaultStyleChanged event.
protected virtual void OnDefaultStyleChanged()
OnDrawItem(DrawItemEventArgs)
Raises the DrawItem event.
protected override void OnDrawItem(DrawItemEventArgs e)
Parameters
eDrawItemEventArgsThe DrawItemEventArgs object with the details.
OnMouseLeave(EventArgs)
Raises the MouseLeave event.
protected override void OnMouseLeave(EventArgs e)
Parameters
OnMouseMove(MouseEventArgs)
Raises the MouseMove event.
protected override void OnMouseMove(MouseEventArgs e)
Parameters
eMouseEventArgsA MouseEventArgs that contains the event data.
Events
DefaultStyleChanged
Occurs when the DefaultStyle property changes.
[ExCategory("Changed Property")]
[ExDescription("Occurs when the BorderColor property changes.")]
public event EventHandler? DefaultStyleChanged