Specifies the font size for text displayed with an object. Available at design time and run time.
Object.FontSize[ = nSize] |
Return Value
- nSize
- Specifies the size of the font in points. The default font size is 9 points.
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)
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. |