Table of Contents

Class ColorListBox

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

ListBox descendant for selecting Color values.

public class ColorListBox : VirtualListBox, IBaseObject, IDisposableObject, ISupportInitialize, IFocusable, ITextProperty, IComponent, IControl, IDisposable, IWin32Window, INotifyDataErrorInfo, IReadOnlyStrings
Inheritance
ColorListBox
Implements

Remarks

Items in this control have ListControlItem type where Value is Color and Text is label of the color.

Constructors

ColorListBox()

Initializes a new instance of the ColorListBox class.

ColorListBox(bool)

Initializes a new instance of the ColorListBox class.

Fields

InitColors

Gets or sets method that initializes items in ColorListBox.

Painter

Gets or sets default painter for the ColorListBox items.

Properties

Value

Gets or sets the selected color. Color value must be added to the list of colors before selecting it.

Methods

GetItemValueOrDefault(ListControl, int, Color)

Gets color value of the specified item or default color.

InitDefaultColors(ColorListBox)

Adds color items to the ColorListBox. This is default implementation of the initialization method. It is assigned to InitColors property by default.

Initialize(bool)

Initializes control with default colors and assigns item painter. This method is called from constructor.