Returns or sets the color of the OnText of the object.
Object.OnTextColor [ = dwOnTextColor ]
The OnTextColor property syntax has the following parts:
|
Name |
Type |
Description |
|
Object |
ASwitch |
ASwitch control |
|
dwOnTextColor |
An integer specifying the color of the OnText of the control. |
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.
The following statement returns the ASwitch OnTextColor:
dwsw1OnTextColor = sw1.OnTextColor
OffTextColor, OnText, OnTextFont, OnTextHeight, OnTextLeft, OnTextTop, OnTextWidth