Provides a coloured label-like control which gives easy access to various types of colour input.
Constructors
ColourLabel
#public ColourLabel(Color colour)
Creates a new colour label.
Parameters:
| colour (Color) | Colour. |
Properties
PaletteRegion
#public RectangleF PaletteRegion { get; }
Gets the rectangle containing the palette icon.
PickerRegion
#public RectangleF PickerRegion { get; }
Gets the rectangle from within which the colour picker launches.
SamplerRegion
#public RectangleF SamplerRegion { get; }
Gets the rectangle containing the sampling icon.
ShowContextualColours
#Gets or sets whether context aware colours are available in the colour picker.
Methods
OnMouseDown
#protected override void OnMouseDown(MouseEventArgs e)
Raises the MouseDown event.
Remarks: To override default behaviour of the control, set Handled property to
true.Parameters:
| e (MouseEventArgs) | Event arguments |
Overrides: Control.OnMouseDown
OnMouseMove
#protected override void OnMouseMove(MouseEventArgs e)
Raises the MouseMove event.
Parameters:
| e (MouseEventArgs) | Mouse event args |
Overrides: Control.OnMouseMove
OnMouseUp
#protected override void OnMouseUp(MouseEventArgs e)
Raises the MouseUp event.
Parameters:
| e (MouseEventArgs) | Event arguments |
Overrides: Control.OnMouseUp
OnPaint
#protected override void OnPaint(PaintEventArgs e)
Raises the Paint event
Parameters:
| e (PaintEventArgs) | Paint event arguments |
Overrides: Drawable.OnPaint