Class ColorComboBox
public class ColorComboBox : ComboBox, IBaseObject, IDisposableObject, ISupportInitialize, IFocusable, ITextProperty, IComponent, IControl, IDisposable, IWin32Window, INotifyDataErrorInfo, IReadOnlyStrings
- Inheritance
-
ColorComboBox
- Implements
Remarks
Items in this control have ListControlItem type where Value is Color and Text is label of the color.
Constructors
- ColorComboBox()
Initializes a new instance of the ColorComboBox class.
- ColorComboBox(bool)
Initializes a new instance of the ColorComboBox class.
Fields
- InitColors
Gets or sets method that initializes items in ColorComboBox.
- PaintColorImage
Gets or sets method that paints color image in the item. Borders around color image are also painted by this method.
- Painter
Gets or sets default painter for the ColorComboBox items.
Properties
- IsEditable
Gets or a value that enables or disables editing of the text in text box area of the ComboBox.
- Value
Gets or sets the selected color. Color value must be added to the list of colors before selecting it.
Methods
- InitDefaultColors(ColorComboBox)
Adds color items to the ColorComboBox. This is default implementation of the initialization method. It is assigned to InitColors property by default.
- PaintDefaultColorImage(Graphics, RectD, Color)
Paints color image in the item with the default style. Borders around color image are also painted by this method. This is default value of the PaintColorImage field.