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

TCustomColorListBox.Colors

Provides indexed access to the TColor value for items in the control.

Declaration

Source position: colorbox.pas line 211

public property TCustomColorListBox.Colors[Index: Integer] : TColor
  read GetColors
  write SetColors;

Description

Colors is an indexed TColor property which provides access to the colors in the control by their ordinal position in the list of Items. Setting a new TColor value in 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 ColorNames to access the name for the color at a specific position in the Items for the control.

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


Version 4.0 Generated 2025-05-03 Home