CaptionColor Property (ASwitch)

Returns or sets the color of the caption in the object.

Syntax

Object.CaptionColor [ = lCaptionColor ]

The CaptionColor property syntax has the following parts:

 

Name

Type

Description

Object

ASwitch

ASwitch control

lCaptionColor

AColor

An integer specifying the text color of the caption of the control.

Comments

The colors are specified by their RGB values. The default is the current Ambient foreground color.

Example

The following statement returns the ASwitch CaptionColor:

lsw1CaptionColor = sw1.CaptionColor

Applies to

ASwitch

See Also

CaptionFont, CaptionHeight, CaptionLeft, CaptionTop, CaptionWidth