# ColourLabel class

Namespace: [Grasshopper2.UI.ColourPicker](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.ui.colourpicker.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class ColourLabel : Drawable
```

Provides a coloured label-like control which gives easy access to various types of colour input.

## Constructors

- [ColourLabel](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.colourlabel/ctor.md): Creates a new colour label.

## Properties

- [PaletteRegion](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.colourlabel/paletteregion.md): Gets the rectangle containing the palette icon.
- [PickerRegion](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.colourlabel/pickerregion.md): Gets the rectangle from within which the colour picker launches.
- [ProvidePalette](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.colourlabel/providepalette.md): Gets or sets whether to provide a custom palette window on click.
- [ProvidePicker](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.colourlabel/providepicker.md): Gets or sets whether to provide a colour picker window on click.
- [ProvideSampler](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.colourlabel/providesampler.md): Gets or sets whether to provide a screen sampler on click.
- [SamplerRegion](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.colourlabel/samplerregion.md): Gets the rectangle containing the sampling icon.
- [ShowContextualColours](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.colourlabel/showcontextualcolours.md): Gets or sets whether context aware colours are available in the colour picker.
- [ShowName](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.colourlabel/showname.md): Gets or sets whether to include the colour name on the label.
- [ShowTransparency](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.colourlabel/showtransparency.md): Include the transparency slider when showing the picker.
- [Values](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.colourlabel/values.md): Gets the plurality database associated with this colour label.

## Methods

- [OnMouseDown](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.colourlabel/onmousedown.md): Raises the `MouseDown` event.
- [OnMouseMove](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.colourlabel/onmousemove.md): Raises the `MouseMove` event.
- [OnMouseUp](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.colourlabel/onmouseup.md): Raises the `MouseUp` event.
- [OnPaint](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.colourlabel/onpaint.md): Raises the `Paint` event

## Events

- [ColourChanged](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.colourlabel/colourchanged.md): Raised whenever the current colour is changed.
