Returns or sets the color of the Picture in the On state of the object.
Object.OnPictureColor [ = dwOnPictureColor ]
The OnPictureColor property syntax has the following parts:
Name |
Type |
Description |
Object |
ASwitch |
ASwitch control |
dwOnPictureColor |
An integer specifying the color of the Picture in the On state of the control. |
The colors are specified by their RGB values. The default is Light gray except for the LED style, which will have a red color. This property can be set at design time and is read-only at run time.
The following statement returns the ASwitch OnPictureColor:
dwsw1OnPictureColor = sw1.OnPictureColor