FillStyle Property (AForm)

Returns or sets the pattern used to fill shapes created with the graphics methods.

Syntax

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.

Where

enumAFormFillStyle:

 

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

Comments

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.

Example

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

Applies to

AForm

See Also

BorderStyle, DrawStyle, FillColor