Provides the standard Grasshopper Colour picker as a winforms Control.

Constructors

GH_ColourPicker

#
public GH_ColourPicker()

Properties

AllowNumericInput

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

Colour

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

DesiredHeight

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

ShowAlphaSlider

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

ShowChannelSliders

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

SliceRectangle

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

Methods

Dispose

#
protected override void Dispose(
disposing
)

OnPaint

#
protected override void OnPaint()
Control.OnPaint

OnPaintBackground

#
protected override void OnPaintBackground()

RespondToEnter

#
RespondToEnter

RespondToEscape

#
RespondToEscape

Events

ColourChanged

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