Returns or sets the pattern used to fill shapes created with the graphics methods.
Object.FillStyle [ = enFillStyle ]
The FillStyle property syntax has the following parts:
Name |
Type |
Description |
Object |
AForm |
AForm object |
enFillStyle |
enumAFormFillStyle |
An integer specifying the predefined style of the object. |
Name |
Value |
Description |
aformFillStyleSolid |
0 |
Solid |
aformFillStyleTransparent |
1 * |
Transparent |
aformFillStyleHorizontalLine |
2 |
Horizontal Line |
aformFillStyleVerticalLine |
3 |
Vertical Line |
aformFillStyleUpwardDiagonal |
4 |
Upward Diagonal |
aformFillStyleDownWardDiagonal |
5 |
Downward Diagonal |
aformFillStyleCross |
6 |
Cross |
aformFillStyleDiagonalCross |
7 |
Diagonal Cross |
When FillStyle is set to 1 (Transparent), the FillColor property is ignored.
The property is not applicable for MDI Form type since drawing functions are not supported for MDI Forms.
The following statement changes the AForm's FillStyle to fill the area inside the graphics methods shapes to be a horizontal line:
frm1.FillStyle=aformFillStyleHorizontalLine
BorderStyle, DrawStyle, FillColor