Condividi tramite


FontSize Property

Specifies the font size for text displayed with an object. Available at design time and run time.

Object.FontSize[ = nSize]

Property Values

  • nSize
    Specifies the size of the font in points. The default font size is 9 points.

Remarks

The maximum value for nSize is 127 points. There are 72 points in 1 inch.

In general, you should 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. The Windows environment uses a different font for TrueType fonts that are smaller than 8 points.

Note   Available fonts vary according to your system configuration and printing devices. Font-related properties can be set only to values for which fonts exist.

See Also

FontBold Property | FontItalic Property | FontStrikethru Property | FontUnderline Property

Applies To: CheckBox | Column | ComboBox | CommandButton | EditBox | Form | Grid | Header | Label | ListBox | OptionButton | Page | _SCREEN | Spinner | TextBox