Class ExColorSelector
- Namespace
- ExControls
- Assembly
- ExControls.dll
Control that shows the selected color; a click opens a color dialog (Dialog) to change it.
[ToolboxBitmap(typeof(ToolboxIcons), "Toolbox.ExColorSelector.ico")]
public class ExColorSelector : UserControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl, IThemeable
- Inheritance
-
ExColorSelector
- Implements
- Inherited Members
- Extension Methods
Constructors
ExColorSelector()
Initializes a new instance of the ExColorSelector class.
public ExColorSelector()
Properties
BorderColor
Gets or sets color of border of this Control.
[ExDescription("Gets or sets width of border of this Control.", true)]
public Color BorderColor { get; set; }
Property Value
BorderStyle
Gets or sets style of border of this Control.
[ExDescription("Gets or sets style of border of this Control.", true)]
public BorderStyle BorderStyle { get; set; }
Property Value
BorderWidth
Gets or sets width of border of this Control.
[ExDescription("Gets or sets width of border of this Control.", true)]
public int BorderWidth { get; set; }
Property Value
Dialog
Gets a dialog associated with this control.
[ExDescription("Gets a dialog associated with this control.", true)]
[TypeConverter(typeof(ExpandableObjectConverter))]
public ColorDialog Dialog { get; }
Property Value
SelectedColor
Gets or sets selected color.
[ExDescription("Gets or sets selected color.", true)]
public Color SelectedColor { get; set; }
Property Value
Methods
ApplyTheme(ExTheme)
Sets the panel colors by the theme (also in the system style) and in the custom style the border to BorderColor.
public void ApplyTheme(ExTheme theme)
Parameters
themeExThemetheme to apply
Dispose(bool)
Clean up any resources being used.
protected override void Dispose(bool disposing)
Parameters
disposingbooltrue if managed resources should be disposed; otherwise, false.
OnSelectedColorChanged()
Raises the SelectedColorChanged event.
protected virtual void OnSelectedColorChanged()
Events
SelectedColorChanged
Occurs when the SelectedColor property changes.
[ExCategory("Changed Property")]
[ExDescription("Occurs when the SelectedColor property changes.")]
public event EventHandler? SelectedColorChanged