Supplying property values
308 DataWindow .NET
Pen.Color
Description
The color of the line or the outline of a graphic control.
In the painter
Pen Color on the General page in the Properties view.
Value
A number that specifies the color of the line or outline.
For information on specifying colors, see “Specifying colors” on page 314.
Example
See the example for the Pen.Style property, next.
Pen.Style
Description
The style of the line or the outline of a graphic control.
In the painter
Pen Style on the General page in the Properties view.
Value
Values are:
0—Solid
1—Dash
2—Dotted
3—Dash-dot pattern
4—Dash-dot-dot pattern
5—Null (no visible line)
Example
In this example, statements check the employee's start date to see if the month
is the current month or the month following the current month. Properties of a
rectangle control placed behind the row of data are changed to highlight
employees with months of hire that match the current month or the month
following the current month.
The Design view includes columns of data and a rectangle behind the data. The
rectangle has been changed to black in the following picture to make it stand
out: