Visual Basic Reference
FillStyle Property
Returns or sets the pattern used to fill Shape controls as well as circles and boxes created with the Circle and Line graphics methods.
Syntax
object.FillStyle [= number]
The FillStyle property syntax has these parts:
Part | Description |
Object | An object expression that evaluates to an object in the Applies To list. |
Number | An integer that specifies the fill style, as described in Settings. |
Settings
The number settings are:
Constant | Setting | Description |
VbFSSolid | 0 | Solid |
VbFSTransparent | 1 | (Default) Transparent |
VbHorizontalLine | 2 | Horizontal Line |
VbVerticalLine | 3 | Vertical Line |
VbUpwardDiagonal | 4 | Upward Diagonal |
VbDownwardDiagonal | 5 | Downward Diagonal |
VbCross | 6 | Cross |
VbDiagonalCross | 7 | Diagonal Cross |
Remarks
When FillStyle is set to 1 (Transparent), the FillColor property is ignored, except for the Form object.