FillStyle Property

Specifies the pattern that will be used to fill the interior of the shape.

Syntax

object.FillStyle [= enumFillStyle]

Properties

The FillStyle property syntax has these parts:

Part

Description

object

An object expression that evaluates to an object in the Applies To list.

enumFillStyle

The pattern to display.

Settings

The settings for enumFillStyle are:

Constant

Value

Description

FillStyleSolid

0

Solid.

FillStyleHollow

1

Hollow.

FillStyleHorizontal

2

Horizontal.

FillStyleVertical

3

Vertical.

FillStyleDownDiagonal

4

Downward diagonal.

FillStyleUpDiagonal

5

Upward diagonal.

FillStyleCrossHatch

6

Crosshatch.

FillStyleDiagonalCrossHatch

7

Diagonal crosshatch.

FillStyleGradient

8

Gradient.

Remarks

The FillStyle pattern is generated by alternating the BackgroundColor and ForegroundColor of the shape, except when the FillStyle pattern is Gradient. When the FillStyle pattern is Gradient, the ForegroundColor and FadeColor of the shape alternate.

 

Applies To