Skip to main content

TcxCustomColorComboBoxProperties.CustomColors Property

Provides access to the list of items, which represent custom colors within the color combo box.

Declaration

property CustomColors: TcxColorComboBoxItems read; write;

Property Value

Type
TcxColorComboBoxItems

Remarks

All the items added to the Items collection either by you (at design time or programmatically) or by end-users represent custom colors and can be accessed via the CustomColors property. At design time, adding items to the CustomColors collection results in these items being added to the Items collection when the color combo box is initialized.

Note

Set the AllowSelectColor property to True to let end-users add custom colors to the list at runtime. You can specify whether each selected color should be added to the list by handling the OnSelectCustomColor event.

The CustomColors property like the Items property is represented by the TcxColorComboBoxItems object, a TCollection descendant. You can use the properties and methods of this object to traverse through items and manage the list. Please refer to the TcxColorComboBoxItems class description for details.

See Also