ColorListBox Class
public class ColorListBox : ListBox
- Inheritance:
- Object Object
Constructors
ColorListBox()
Initializes a new instance of the ColorListBox
class.
public ColorListBox()
Remarks
The default constructor initializes all fields to their default values.
Properties
ColorSet
Gets the ColorListBoxColorSet that indicates the color set that is loaded.
public ColorListBoxColorSet ColorSet { get; set; }
Property Value
- ColorListBoxColorSet:
The ColorListBoxColorSet that indicates the color set that is loaded.
SelectedColor
Gets or sets the selected color in the list.
Methods
InitializeColors(Color[])
Initializes the list using the specified array of Color objects.
public void InitializeColors(Color[] colors)
Parameter | Type | Description |
---|---|---|
colors | Color[] | An array of Color objects with which to initialize the list. |
OnDrawItem(DrawItemEventArgs)
Occurs when an item needs to be drawn.
protected override void OnDrawItem(DrawItemEventArgs e)
Parameter | Type | Description |
---|---|---|
e | DrawItemEventArgs | A |
OnMeasureItem(MeasureItemEventArgs)
Occurs when an item needs to be measured.
protected override void OnMeasureItem(MeasureItemEventArgs e)
Parameter | Type | Description |
---|---|---|
e | MeasureItemEventArgs | A |
WndProc(ref Message)
Occurs when a message is sent to the control.
protected override void WndProc(ref Message m)
Parameter | Type | Description |
---|---|---|
m | Message | Information about the message. |