Vcl.ExtCtrls.TCustomColorBox.ColorNames

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ColorNames[Index: Integer]: string read GetColorName;

C++

__property System::UnicodeString ColorNames[int Index] = {read=GetColorName};

Properties

Type Visibility Source Unit Parent
property public
Vcl.ExtCtrls.pas
Vcl.ExtCtrls.hpp
Vcl.ExtCtrls TCustomColorBox

Description

Lists the names of the colors in the color box.

Use ColorNames to obtain the name of one of the colors listed in the color box.

Index is the index of the name, where 0 is the index of the first color in the box, 1 is the index of the second color, and so on.

The value of each name is either the name of a color constant defined in the Graphics unit (such as clBlack), or it is the name of the color with the "cl" stripped off (Black). The Style property determines which name is used for each color.

The Style property also controls which colors are included in the list.

See Also