Class BinaryOfficeColorPicker
A specialized color picker control that emulates the popular MS Office color picker, and also provide more extended features, like being able to let you perform alpha-blending of colors.
Namespace: Binarymission.WinForms.Controls.ColorPickers
Assembly: Binarymission.WinForms.Controls.OfficeColorPicker.dll
Syntax
public class BinaryOfficeColorPicker : UserControl
Constructors
BinaryOfficeColorPicker()
Initializes a new instance of the BinaryOfficeColorPicker class.
Declaration
public BinaryOfficeColorPicker()
Properties
AlphaValue
Gets or sets the alpha value.
Declaration
public int AlphaValue { get; set; }
BlendTargetColor
Gets or sets the color of the blend target.
Declaration
public Color BlendTargetColor { get; set; }
BorderColor
Gets or sets the color of the drop-down window's border.
Declaration
public Color BorderColor { get; set; }
EnableSettingAlphaValue
Gets or sets a value indicating whether to enable setting alpha value.
Declaration
public bool EnableSettingAlphaValue { get; set; }
HeadingBackColor
Gets or sets the backcolor of the heading.
Declaration
public Color HeadingBackColor { get; set; }
HeadingForeColor
Gets or sets the forecolor of the heading label.
Declaration
public Color HeadingForeColor { get; set; }
SelectedColorRectangleBorder
Gets or sets the selected color's rectangle border.
Declaration
public Color SelectedColorRectangleBorder { get; set; }
ShowHSBInToolTip
Gets or sets a value indicating whether to show HSB in tooltip.
Declaration
public bool ShowHSBInToolTip { get; set; }
ShowToolTip
Gets or sets a value indicating whether to show tooltip.
Declaration
public bool ShowToolTip { get; set; }
UserSelectedColor
Gets or sets the user selected color.
Declaration
public Color UserSelectedColor { get; set; }
Methods
Dispose(Boolean)
Clean up any resources being used.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | disposing | true if managed resources should be disposed; otherwise, false. |
OnDoubleClick(EventArgs)
Declaration
protected override void OnDoubleClick(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
EventArgs | e |
Events
BinaryColorPickerSelectedColorChanged
This event is raised when the current selected color property of the BinaryOfficeColorPicker class changes.
Declaration
public event EventHandler<BinaryColorPickerExtendedEventArgs> BinaryColorPickerSelectedColorChanged
Event Type
Type | Description |
---|---|
EventHandler<BinaryColorPickerExtendedEventArgs> |
SelectionCommitted
Occurs when the user committs a color selectio.
Declaration
public event EventHandler<BinaryColorPickerExtendedEventArgs> SelectionCommitted
Event Type
Type | Description |
---|---|
EventHandler<BinaryColorPickerExtendedEventArgs> |