From RAD Studio API Documentation
Jump to: navigation, search


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


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


Type Visibility Source Unit Parent
property public
Vcl.ExtCtrls TCustomColorBox


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