BinaryColorPickerExtendedEventArgs
Provides data for the Office-style colour picker's events: the colour to use, and the alpha value and blend colour it was mixed from.
public class BinaryColorPickerExtendedEventArgs : EventArgs
Inherits from / implements: EventArgs
Remarks
The picker can mix the colour the user clicked with a second, "blend" colour. Mixing at an
AlphaValue of 255 gives the clicked colour unchanged; lower values move it towards
BlendTargetColor. UserSelectedColor is the result, fully
opaque.
See also
BinaryOfficeColorPicker.BinaryColorPickerSelectedColorChangedBinaryOfficeColorPicker.SelectionCommittedBinaryOfficeColorPickerComboBox.SelectedColorChanged
Members at a glance
| Constructors | |
|---|---|
BinaryColorPickerExtendedEventArgs | Initialises event data with an empty colour, an empty blend colour and an alpha value of 255. |
| Properties | |
AlphaValue | Gets or sets how much of the chosen colour went into the mix, against
BlendTargetColor. |
BlendTargetColor | Gets or sets the colour the chosen colour was mixed with. |
ShowHSBInToolTip | Gets or sets a flag carried with the event data. The picker never sets it, so it is always
false in its events. |
UserSelectedColor | Gets or sets the colour to use: the colour the user chose, mixed with
BlendTargetColor at AlphaValue. |
Constructors
BinaryColorPickerExtendedEventArgs
Initialises event data with an empty colour, an empty blend colour and an alpha value of 255.
Properties
AlphaValue
Gets or sets how much of the chosen colour went into the mix, against
BlendTargetColor.
- Value
- From 0 (all blend colour) to 255 (all chosen colour). The default is 255.
BlendTargetColor
Gets or sets the colour the chosen colour was mixed with.
- Value
- The blend colour. The default is
Color.Empty.
ShowHSBInToolTip
Gets or sets a flag carried with the event data. The picker never sets it, so it is always
false in its events.
- Value
- The default is
false.
UserSelectedColor
Gets or sets the colour to use: the colour the user chose, mixed with
BlendTargetColor at AlphaValue.
- Value
- An opaque colour. The default is
Color.Empty.