Skip to main content

TcxCustomColorComboBoxProperties.ColorValueFormat Property

Specifies the format of descriptions for colors not recognized by the current naming convention.

Declaration

property ColorValueFormat: TcxColorValueFormat read; write; default cxcvRGB;

Property Value

Type Default
TcxColorValueFormat cxcvRGB

Remarks

If the ShowDescriptions property is set to True, each item of the color combo box displays a textual description of the color it represents. The description for each color depends upon the NamingConvention property and the Description property of the corresponding item. If the NamingConvention property is set to cxncNone, the value specified by the item’s Description property controls the description. Otherwise, the control searches for the color description in the naming convention applied. If found, the description is displayed, otherwise the numeric code of the color is displayed. The format of the numeric code depends upon the ColorValueFormat property value and the following values are available:

Property’s Value Meaning Effect
cxcvHexadecimal Hexadecimal style. The color is displayed as four pairs of digits. The low three bytes represent RGB color intensities for blue, green, and red, respectively.
cxcvInteger Integer style. The value is obtained by translating the hexadecimal value into decimal scale.
cxcvRGB RGB style. This value consists of three numbers representing the intensity of blue, green and red delimited by dots.

Note

You can also specify the descriptions of colors using the OnSelectCustomColor and OnNamingConvention events.

The default value of the ColorValueFormat property is cxcvRGB.

See Also