- Inheritance:
-
object
Marshal
By Component Control ListRef Object Control ListBox object
- Implements:
-
IDisposable
IDpi
Aware Element
Constructors
ColorListBox()
Initializes a new instance of the ColorListBox
class.
Remarks
The default constructor initializes all fields to their default values.
Properties
ColorSet
Gets the Color
Property Value
- Color
List :Box Color Set The Color
List that indicates the color set that is loaded.Box Color Set
DrawMode
Gets or sets the drawing mode for the control.
Property Value
- Draw
Mode : One of the Draw
Mode values representing the mode for drawing the items of the control. The default isDrawMode.Normal
.
Exceptions
Type | Condition |
---|---|
Invalid |
The value assigned to the property is not a member of the Draw |
Argument |
A multicolumn List |
ItemHeight
Gets the height of an item in the Color
Property Value
- int:
The height, in pixels, of an item in the control.
Remarks
The height of items in this control is automatically determined based on current device DPI. Setting this value will have no effect.
SelectedColor
Gets or sets the selected color in the list.
Methods
InitializeColors(Color[])
Initializes the list using the specified array of Color objects.
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.
Parameter | Type | Description |
---|---|---|
e | Draw |
A |
OnFontChanged(EventArgs)
Occurs when then font property is changed.
Parameter | Type | Description |
---|---|---|
e | Event |
An |
OnMeasureItem(MeasureItemEventArgs)
Occurs when an item needs to be measured.
Parameter | Type | Description |
---|---|---|
e | Measure |
A |
WndProc(ref Message)
Occurs when a message is sent to the control.
Parameter | Type | Description |
---|---|---|
m | Message | Information about the message. |
Inherited Members
-
Marshal
By Ref Object. Get Lifetime Service() -
Marshal
By Ref Object. Initialize Lifetime Service() -
Marshal
By Ref Object. Memberwise Clone(bool) -
object.
Get Type() -
object.
Memberwise Clone() -
object.
To String() -
object.
Equals(object) -
object.
Equals(object, object) -
object.
Reference Equals(object, object) -
object.
Get Hash Code()
Extension Methods
-
Dpi
Aware Element Extensions. Auto Scale Font(IDpi Aware Element, Font) -
Dpi
Aware Element Extensions. Auto Scale Font Size(IDpi Aware Element, float) -
Dpi
Aware Element Extensions. Scale Logical Value(IDpi Aware Element, Padding) -
Dpi
Aware Element Extensions. Scale Logical Value(IDpi Aware Element, Point) -
Dpi
Aware Element Extensions. Scale Logical Value(IDpi Aware Element, Rectangle) -
Dpi
Aware Element Extensions. Scale Logical Value(IDpi Aware Element, Size) -
Dpi
Aware Element Extensions. Scale Logical Value(IDpi Aware Element, Size F) -
Dpi
Aware Element Extensions. Scale Logical Value(IDpi Aware Element, int) -
Dpi
Aware Element Extensions. Scale Logical Value(IDpi Aware Element, float) -
Dpi
Aware Element Extensions. Scale Logical Value(IDpi Aware Element, Padding) -
Dpi
Aware Element Extensions. Synchronize Scale Factor With Children(IDpi Aware Element) - ControlExtensions.FindAncestorOrSelf<T>(Control)
- ControlExtensions.FindAncestorOrSelf<T>(Control, Predicate<T>)
- ControlExtensions.FindAncestor<T>(Control)
- ControlExtensions.FindAncestor<T>(Control, Predicate<T>)