[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'ColorBox' (#lcl)

TCustomColorListBox.ColorNames

Provides indexed access to the names for the Colors used in the control.

Declaration

Source position: colorbox.pas line 212

public property TCustomColorListBox.ColorNames[Index: Integer] : string
  read GetColorName;

Description

ColorNames is a String property which provides indexed access to the names for the values stored in Colors property. Setting a new value for the indexed property causes the control to be redrawn.

Values in Colors and ColorNames are used in the DrawItem method when the color sample and the color name for an item is drawn on the control Canvas.

Use Colors to get the TColor value for one the Items in the control.

Use Style to determine the colors and names available in the combo-box control.


Version 4.0 Generated 2025-05-03 Home