Aracılığıyla paylaş


FontBold, FontItalic, FontStrikethru, FontUnderline Properties

Specifies whether text has one or more of the following styles: Bold, Italic, Strikethru, or Underline. Available at design time and run time.

Object.FontBold[ = lExpr]Object.FontItalic
[ = lExpr]Object.FontStrikeThru[ = lExpr]Object.FontUnderline[ = lExpr]

Return Value

  • lExpr
    The settings for the font properties are:

    Setting

    Description

    True (.T.)

    Font style is bold, italic, strikethru, or underline.

    False (.F.)

    (Default except for FontBold) Font style is not bold, italic, strikethru, or underline.

Remarks

Applies To: CheckBox Control | Column Object | ComboBox Control | CommandButton Control | EditBox Control | Form Object | Grid Control | Header Object | Label Control (Visual FoxPro) | ListBox Control | OptionButton Control | Page Object | _SCREEN System Variable | Spinner Control | TextBox Control (Visual FoxPro)

In general, change the FontName property before you set size and style attributes with the FontSize, FontBold, FontItalic, FontStrikethru, and FontUnderline properties. However, when you set TrueType fonts to smaller than 8 points, you should set the point size with the FontSize property, next set the FontName property, and then set the size again with the FontSize property. Windows uses a different font for TrueType fonts that are smaller than 8 points.

Note

Fonts that are available vary according to your system configuration, display devices, and printing devices. Font-related properties can be set only to values for which actual fonts exist.

Note

The FontBold property does not apply to the Page object.

See Also

Reference

FontName Property

FontSize Property

SetAll Method

Other Resources

Properties (Visual FoxPro)

Language Reference (Visual FoxPro)