Caption Property

Description

Returns/sets the text displayed in the color button.

Usage

[form.][control.]Caption[ = String]

Data Type

String

Default

""

Remarks

This property sets or returns the text displayed in color button, this property priority is higher than IndicatorIcon, so if this value is not empty, the control will display this specified text, and IndicatorIcon property will not work even though that property has been loaded an icon/image. To redisplay the loaded color button icon/image, to set this property value to empty.

See also IndicatorIcon property.

Sample

ColorPicker1.Caption = “Color”

ColorPicker1.Caption = “”// not display the caption