Specifies the color used to fill shapes drawn on an object by graphics routines. Available at design time and run time.
Object.FillColor[ = nColor ] Object.FillColor[ = RGB(nRedValue, nGreenValue, nBlueValue) ] |
Return Value
- nColor
- Specifies a single number to represent the color. By default, FillColor is set to 0 (Black). For more information on color settings, see the BackColor, ForeColor Properties topic.
- nRedValue, nGreenValue, nBlueValue
-
Specifies three separate color intensities that compose the fill color; must be used with the RGB(В ) function to consolidate the three color components into one number, which is what the FillColor property is.
Note: In the Properties window, you can double-click any of the color properties to display the Color dialog box. You can choose or define colors from this dialog box. The red, green, and blue intensities that correspond to the color you choose become the settings for these properties after you close the Color dialog box.
Remarks
Applies To: Form Object | _SCREEN System Variable | Shape Control
When the FillStyle property is set to its default, 1 (Transparent), the FillColor setting is ignored.
Only an enclosed shape, such as a circle, box, or ellipse can be filled.
Shape objects use the BackColor property to specify the fill color.