RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomColorBox.ColorNames Property

Lists the names of the colors in the color box.

Pascal
property ColorNames [Index: Integer]: string;
C++
__property AnsiString ColorNames[int Index];

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. 

 

Colors 

Items 

ItemIndex 

Style

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!