Color
This property returns and sets the selected color.
Syntax
object.Color [= number]
Parameters
- object
- Object expression that evaluates to a CommonDialog control.
- number
- Numeric expression that specifies a color. Following are the settings for number:
- Standard RGB colors
- Colors set with the RGB function in code.
- System default colors
- The Windows CE operating environment substitutes the user’s choices, as specified by the user’s Control Panel settings.
Remarks
For this property to return a color in a Color dialog box, the cdlCCRGBInit flag must be set. In the Font dialog box, the cdlCFEffects flag must be set.