Color

Returns or sets the selected color.

Syntax

object.Color [= number]

The parts of the Color property syntax are described in the following table.

Part Description
object An object expression that evaluates to an object.
number A numeric expression that specifies a color

Settings

The settings for number are described in the following table.

Setting Description
Normal RGB colors Colors set with the RGB or QBColor functions in code.
System Default Colors The Microsoft Windows operating environment substitutes the user's choices, as specified by the user's Control Panel settings.

Remarks

For this property to return a color in a Color dialog box, the cdlCCRGBInit flag must be set. In the Font dialog box, the cdlCFEffects flag must be set.

Data Type

Long