# GH_ColourPicker class

Namespace: [Grasshopper.GUI](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.gui.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
[DesignerGenerated]
public class GH_ColourPicker : UserControl, IGH_ToolstripItemKeyHandler
```

Provides the standard Grasshopper Colour picker as a winforms Control.

## Constructors

- [GH_ColourPicker](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-colourpicker/ctor.md)

## Properties

- [AllowNumericInput](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-colourpicker/allownumericinput.md): Gets or sets whether this colour picker pops up a textbox on channel slider double clicks.
- [Colour](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-colourpicker/colour.md): Gets or sets the colour currently specified in the picker.
- [DesiredHeight](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-colourpicker/desiredheight.md): Gets the ideal height for this control given the current width and UI settings.
- [ShowAlphaSlider](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-colourpicker/showalphaslider.md): Gets or sets whether the alpha channel slider is included.
- [ShowChannelSliders](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-colourpicker/showchannelsliders.md): Gets or sets whether the channel sliders are included.
- [SliceRectangle](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-colourpicker/slicerectangle.md): Gets the rectangle that outlines the colour cube slice.

## Methods

- [Dispose](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-colourpicker/dispose.md)
- [OnPaint](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-colourpicker/onpaint.md)
- [OnPaintBackground](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-colourpicker/onpaintbackground.md)
- [RespondToEnter](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-colourpicker/respondtoenter.md)
- [RespondToEscape](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-colourpicker/respondtoescape.md)

## Events

- [ColourChanged](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-colourpicker/colourchanged.md): Raised whenever the value of the slider is changed via GUI interaction.
