HypernovaDesktop Components · docs
Binarymission
WinFormsColor Picker › BinaryColorPickerDropDown

BinaryColorPickerDropDown

class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WinForms.Controls.ColorPickers

BinaryColorPickerDropDown is a Colors displaying control that can used to let users select a color value from a variety of available color values. You could use this control to be displayed as a drop-down window to any control.

public class BinaryColorPickerDropDown : System.Windows.Forms.Form

Inherits from / implements: System.Windows.Forms.Form

Members at a glance

BinaryColorPickerDropDownInitializes a new instance of the BinaryColorPickerDropDown class.
CustomColorRectangleBorderStyleGets or sets the Border style ( i.e. Border3DStyle )for painting the borders of custom color boxes in the Custom colors tab page of the control.
SelectedColorGets or sets the currently selected color.
DisposeReleases the resources held by this BinaryColorPickerDropDown.
OnDeactivateRaises the Deactivate event. BinaryColorPickerDropDown overrides it so the control's own handling runs alongside the base behavior.
OnLoadRaises the Load event. BinaryColorPickerDropDown overrides it so the control's own handling runs alongside the base behavior.
OnPaintRaises the Paint event. BinaryColorPickerDropDown overrides it so the control's own handling runs alongside the base behavior.
ScaleCoreRescales the drop-down for a new display scale, keeping the swatch grid square.
ShowThis method displays the BinaryColorPickerDropDown window at the user specified position (screen coordinates).
WndProcProcesses the Windows messages sent to this control's window.
BinaryColorPickerSelectedColorChangedThis event is raised when the current selected color property of the BinaryColorPickerDropDown class changes.

Constructors

BinaryColorPickerDropDown

public BinaryColorPickerDropDown()

Initializes a new instance of the BinaryColorPickerDropDown class.

Properties

CustomColorRectangleBorderStyle

public Border3DStyle CustomColorRectangleBorderStyle

Gets or sets the Border style ( i.e. Border3DStyle )for painting the borders of custom color boxes in the Custom colors tab page of the control.

Set this property with one of the valid border styles from the Border3DStyle list.

SelectedColor

public Color SelectedColor

Gets or sets the currently selected color.

Methods

Dispose

protected override void Dispose(bool disposing)

Releases the resources held by this BinaryColorPickerDropDown.

disposing
true when called from Dispose; false when called from the finalizer.

OnDeactivate

protected override void OnDeactivate(EventArgs e)

Raises the Deactivate event. BinaryColorPickerDropDown overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnLoad

protected override void OnLoad(EventArgs e)

Raises the Load event. BinaryColorPickerDropDown overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnPaint

protected override void OnPaint(PaintEventArgs pe)

Raises the Paint event. BinaryColorPickerDropDown overrides it so the control's own handling runs alongside the base behavior.

pe
The data for the event.

ScaleCore

protected override void ScaleCore(float dx, float dy)

Rescales the drop-down for a new display scale, keeping the swatch grid square.

dx
The horizontal scaling factor.
dy
The vertical scaling factor.

Show

public void Show(Point targetPostion)

This method displays the BinaryColorPickerDropDown window at the user specified position (screen coordinates).

WndProc

protected override void WndProc(ref Message m)

Processes the Windows messages sent to this control's window.

Events

BinaryColorPickerSelectedColorChanged

public event EventHandler BinaryColorPickerSelectedColorChanged

This event is raised when the current selected color property of the BinaryColorPickerDropDown class changes.