ColorBoxColors Property

Description

Returns or sets the joined colors value string to be used to store palette popup window color cells colors. You can set the string manually.

Usage

[form.][control.]ColorBoxColors[ = String ]

Data Type

String

Default

""

Remarks

ColorBoxColors is a joined string which contains colors values mapped to palette popup window color cells, as the following description:

String Structure: Color0, Color1, Color2,…, Color255

Range: 0 <= Colorn <= 16777215; 0<= n <=255;

This property is simplified by LoadBoxColors and SetColorCellColor methods. If this property straight inputting and modifying is discommodious, please use LoadBoxColors and SetColorCellColor methods, See also LoadBoxColors and SetColorCellColor methods.

More details about ramp palette functions, see also GeneratePalette and SavePalette methods.

Notes: 1. Any sub color string DO NOT contains character “,”.

2. Color cells tooltip texts will not synchronize automatically after its value is changed. All color cells tooltip texts need be modify manually if you hope it has meaning, refer to SetColorCellToolTip method.

Sample

ColorPicker1.ColorBoxColors = "16777215,255,0,65535,…,2173,555,777,232223,2335,89955,0"