Font.Italic

Description

A number that specifies whether the text should be italic.

In the painter

Italic on the Font page in the Properties view.

Value

Values are:

Example

The following statements are specified for the Font.Italic, Font.Underline, and Font.Weight properties, respectively. If the employee has health insurance, the employee's information displays in italics. If not, the employee's information displays in bold and underlined:

Statements are specified in this way for four controls: the emp_id column, the emp_fname column, the emp_lname column, and the emp_salary column. In the resulting DataWindow object, those with health insurance display in italics. Those without health insurance are emphasized with bold and underlining.

Figure 23-13: DataWindow with font highlighting of row data

The sample shows the Data Window object that results when conditional expressions are specified for four columns. In rows where the health insurance check box is selected, the data in the four columns displays in italics. In rows with health insurance unchecked, the data displays in bold font and is underlined for emphasis.