OnTextColor Property (ASwitch)

Returns or sets the color of the OnText of the object.

Syntax

Object.OnTextColor [ = dwOnTextColor ]

The OnTextColor property syntax has the following parts:

 

Name

Type

Description

Object

ASwitch

ASwitch control

dwOnTextColor

AColor

An integer specifying the color of the OnText of the control.

Comments

The colors are specified by their RGB values. The default is the Current foreground color. This property can be set at design time and is read-only at run time.

Example

The following statement returns the ASwitch OnTextColor:

dwsw1OnTextColor = sw1.OnTextColor

Applies to

ASwitch

See Also

OffTextColor, OnText, OnTextFont, OnTextHeight, OnTextLeft, OnTextTop, OnTextWidth