Returns or sets the font size of the Font dialog.
Object.FontSize [ = lFontSize ]
The FontSize property syntax has the following parts:
Name |
Type |
Description |
Object |
ACommonDialog |
ACommonDialog control |
lFontSize |
Long |
The font size of the Font dialog in points. |
Use this property to format text in the font size you want. The default is determined by the system. To change the default, specify the size of the font in points.
The maximum value for FontSize is 2160 points.
Note: Fonts available with ATEasy vary depending on your system configuration, display devices, and printing devices. Font-related properties can be set only to values for which fonts exist.
In general, you should change the FontName property before you set size and style attributes with the Bold, Font, FontSize, Italic, and Underline properties. However, when you set TrueType fonts to smaller than 8 points, you should set the point size with the FontSize property, then set the FontName property, and then set the size again with the FontSize property. The Microsoft Windows operating environment uses a different font for TrueType fonts that are smaller than 8 points.
The following example will set the initial FontSize to 12 points:
cdlg1.FontSize=12