Provides the standard Grasshopper Colour picker as a winforms Control.

Constructors

GH_ColourPicker

#
public GH_ColourPicker()

Properties

AllowNumericInput

#
[Category("Picker Settings")] public bool AllowNumericInput { get; set; }
Gets or sets whether this colour picker pops up a textbox on channel slider double clicks.

Colour

#
[Category("Picker Settings")] public Color Colour { get; set; }
Gets or sets the colour currently specified in the picker.

DesiredHeight

#
[Category("Picker Settings")] public int DesiredHeight { get; }
Gets the ideal height for this control given the current width and UI settings.

ShowAlphaSlider

#
[Category("Picker Settings")] public bool ShowAlphaSlider { get; set; }
Gets or sets whether the alpha channel slider is included.

ShowChannelSliders

#
[Category("Picker Settings")] public bool ShowChannelSliders { get; set; }
Gets or sets whether the channel sliders are included.

SliceRectangle

#
[Browsable(false)] public Rectangle SliceRectangle { get; }
Gets the rectangle that outlines the colour cube slice.

Methods

Dispose

#
protected override void Dispose(bool disposing)
disposing (bool)

OnPaint

#
protected override void OnPaint(PaintEventArgs e)
e (PaintEventArgs)
Control.OnPaint

OnPaintBackground

#
protected override void OnPaintBackground(PaintEventArgs e)

RespondToEnter

#
RespondToEnter

RespondToEscape

#
RespondToEscape

Events

ColourChanged

#
public event GH_ColourPicker.ColourChangedEventHandler ColourChanged
Raised whenever the value of the slider is changed via GUI interaction.