FontSize

This property returns and sets the size of the font to be used for text displayed in a control or in a run-time drawing or printing operation.

Syntax

object.FontSize [= points]

Parameters

object
Object expression that evaluates to a CommonDialog or Treeview control.
points
Numeric expression that specifies the font size, in points, to use.

Remarks

The FontSize property is unavailable at design time for the TreeView control.

The FontName property is included for use with the CommonDialog control. For additional functionality, use the new Font object properties. However, the Font properties are unavailable for the CommonDialog control.

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 2,160 points. The minimum value is 8 points.

Fonts available with the toolkit vary depending on your system configuration, display devices, and printing devices. Font-related properties can be set only to values for which actual fonts exist.

In general, you should change the FontName property before you set size and style attributes with the FontSize, FontBold, FontItalic, FontStrikethru, and FontUnderline properties.