Class BinaryOfficeColorPickerComboBox
A ComboBox styled ColorPicker control emulating the MS Office style color picker.
Namespace: Binarymission.WinForms.Controls.ColorPickers
Assembly: Binarymission.WinForms.Controls.OfficeColorPicker.dll
Syntax
public class BinaryOfficeColorPickerComboBox : ComboBox
Constructors
BinaryOfficeColorPickerComboBox()
Initializes a new instance of BinaryColorPickerComboBox class.
Declaration
public BinaryOfficeColorPickerComboBox()
Fields
bgbgh
Declaration
protected const int bgbgh = 12
Field Value
Type | Description |
---|---|
Int32 |
Properties
AlphaBlendFactorForControlPainting
Gets or sets the Alpha blending factor value for use when painting the control.
Declaration
public int AlphaBlendFactorForControlPainting { get; set; }
Remarks
Set this property with a value of your choice, to alpha blend/smoothen the control's painting color.
AlphaBlendFactorForDropDownPressedColor
Gets or sets the Alpha blending factor value for use when painting the "pressed" state of the control.
Declaration
public int AlphaBlendFactorForDropDownPressedColor { get; set; }
Remarks
Set this property with a value of your choice, to alpha blend/smoothen the control's "pressed state" painting color.
AlphaBlendFactorForItemSelectionColor
Gets or sets the Alpha blending factor value for use when painting the Item selection background.
Declaration
public int AlphaBlendFactorForItemSelectionColor { get; set; }
Remarks
Set this property with a value of your choice, to alpha blend/smoothen the control's painting color used when painting the Item selection background.
AlphaValue
Gets or sets the alpha value.
Declaration
public int AlphaValue { get; set; }
BlendTargetColor
Gets or sets the color of the blend target.
Declaration
public Color BlendTargetColor { get; set; }
BorderColor
Gets or sets the color of the drop-down window's border.
Declaration
public Color BorderColor { get; set; }
CustomColorForRectangleBorder
Gets or sets the Border color for painting the border for custom color boxes in the dropdown color control.
Declaration
public Color CustomColorForRectangleBorder { get; set; }
CustomControlBorderColor
Gets or sets the Color value for painting the Control's border.
Declaration
public Color CustomControlBorderColor { get; set; }
Remarks
Set this property with a valid Color value of your choice, to paint the control's border.
By default, this property is set to Highlight value.
CustomPaintingColor
Gets or sets the Color value for painting the Control.
Declaration
public Color CustomPaintingColor { get; set; }
Remarks
Set this property with a valid Color value of your choice, to paint the control.
By default, this property is set to Highlight value.
EnableSettingAlphaValue
Gets or sets a value indicating whether to enable setting alpha value.
Declaration
public bool EnableSettingAlphaValue { get; set; }
HeadingBackColor
Gets or sets the backcolor of the heading.
Declaration
public Color HeadingBackColor { get; set; }
HeadingForeColor
Gets or sets the forecolor of the heading.
Declaration
public Color HeadingForeColor { get; set; }
RightToLeft
RightToLeft is currently not supported. Planned for future release.
Declaration
public override RightToLeft RightToLeft { get; set; }
SelectedColor
Gets or sets the currently selected color in the ColorPicker combobox control.
Declaration
public Color SelectedColor { get; set; }
SelectedColorRectangleBorder
Gets or sets the selected rectangle's border color.
Declaration
public Color SelectedColorRectangleBorder { get; set; }
ShowBorderAlways
Gets or sets whether the control will always have its border displayed, even when the control is not currently in focus.
Declaration
public bool ShowBorderAlways { get; set; }
Remarks
If set to true, the control will always display its border even when the input focus is not on the control.
By default, this property is set to false.
ShowColorNameIfKnownColor
Gets or sets whether to show the color name in the combobox text area, if the chosen/selected/set color is a known color (refer to IsKnownColor for more details).
Declaration
public bool ShowColorNameIfKnownColor { get; set; }
ShowHSBInToolTip
Gets or sets a value indicating whether to show HSB in tooltip.
Declaration
public bool ShowHSBInToolTip { get; set; }
ShowToolTip
Gets or sets a value indicating whether to show tooltip.
Declaration
public bool ShowToolTip { get; set; }
Methods
aqwwwwdwww()
Declaration
protected void aqwwwwdwww()
aqwwwwdwww1()
Declaration
protected virtual void aqwwwwdwww1()
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | disposing |
ggggggbbbbb(Graphics, Rectangle, Int32, Boolean, Boolean)
Declaration
protected void ggggggbbbbb(Graphics g, Rectangle bounds, int Index, bool sss, bool eee)
Parameters
Type | Name | Description |
---|---|---|
Graphics | g | |
Rectangle | bounds | |
Int32 | Index | |
Boolean | sss | |
Boolean | eee |
ggggggbbbbb1(Graphics, Rectangle, Int32, Boolean, Boolean)
Declaration
protected virtual void ggggggbbbbb1(Graphics g, Rectangle bounds, int Index, bool sss, bool eee)
Parameters
Type | Name | Description |
---|---|---|
Graphics | g | |
Rectangle | bounds | |
Int32 | Index | |
Boolean | sss | |
Boolean | eee |
ghtyuijs(Graphics, Rectangle, Int32, Boolean, Boolean)
Declaration
protected void ghtyuijs(Graphics g, Rectangle bounds, int Index, bool sss, bool eee)
Parameters
Type | Name | Description |
---|---|---|
Graphics | g | |
Rectangle | bounds | |
Int32 | Index | |
Boolean | sss | |
Boolean | eee |
ghtyuijs1(Graphics, Rectangle, Int32, Boolean, Boolean)
Declaration
protected virtual void ghtyuijs1(Graphics g, Rectangle bounds, int Index, bool sss, bool eee)
Parameters
Type | Name | Description |
---|---|---|
Graphics | g | |
Rectangle | bounds | |
Int32 | Index | |
Boolean | sss | |
Boolean | eee |
gtyh(Int32)
Declaration
protected void gtyh(int s)
Parameters
Type | Name | Description |
---|---|---|
Int32 | s |
OnDrawItem(DrawItemEventArgs)
Declaration
protected override void OnDrawItem(DrawItemEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
DrawItemEventArgs | e |
OnGotFocus(EventArgs)
Declaration
protected override void OnGotFocus(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
EventArgs | e |
OnHandleCreated(EventArgs)
Declaration
protected override void OnHandleCreated(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
EventArgs | e |
OnKeyPress(KeyPressEventArgs)
Declaration
protected override void OnKeyPress(KeyPressEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
KeyPressEventArgs | e |
OnLostFocus(EventArgs)
Declaration
protected override void OnLostFocus(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
EventArgs | e |
OnMouseEnter(EventArgs)
Declaration
protected override void OnMouseEnter(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
EventArgs | e |
OnMouseLeave(EventArgs)
Declaration
protected override void OnMouseLeave(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
EventArgs | e |
OnPaint(PaintEventArgs)
Declaration
protected override void OnPaint(PaintEventArgs pe)
Parameters
Type | Name | Description |
---|---|---|
PaintEventArgs | pe |
OnSelectedIndexChanged(EventArgs)
Declaration
protected override void OnSelectedIndexChanged(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
EventArgs | e |
qwertyu(Graphics, String, Font)
Declaration
protected static Size qwertyu(Graphics graphics, string text, Font font)
Parameters
Type | Name | Description |
---|---|---|
Graphics | graphics | |
String | text | |
Font | font |
Returns
Type | Description |
---|---|
Size |
WndProc(ref Message)
Declaration
protected override void WndProc(ref Message m)
Parameters
Type | Name | Description |
---|---|---|
Message | m |
Events
SelectedColorChanged
Fires when the SelectedColor property changes or when the current color is changed by the user (or in the code) by selecting a new color value form the dropdown colorpicker.
Declaration
public event EventHandler<BinaryColorPickerExtendedEventArgs> SelectedColorChanged
Event Type
Type | Description |
---|---|
EventHandler<BinaryColorPickerExtendedEventArgs> |