Returns or sets the color of the caption in the object.
Object.CaptionColor [ = lCaptionColor ]
The CaptionColor property syntax has the following parts:
|
Name |
Type |
Description |
|
Object |
ASwitch |
ASwitch control |
|
lCaptionColor |
An integer specifying the text color of the caption of the control. |
The colors are specified by their RGB values. The default is the current Ambient foreground color.
The following statement returns the ASwitch CaptionColor:
lsw1CaptionColor = sw1.CaptionColor
CaptionFont, CaptionHeight, CaptionLeft, CaptionTop, CaptionWidth