Size

This property returns and sets the font size used in a Font object.

Syntax

object.Size [= number]

Parameters

object
Object expression that evaluates to a Font object.
number
Numeric expression that specifies the size, in points, of the font.

Remarks

Use this property to format text in the font size you want. The default font size is determined by Windows CE. To change the default, specify the size of the font in points. The maximum value for the Size property is 2,048 points.

The Font object is not directly available at design time. Instead, set the Size property by selecting a control's Font property in the Properties window and clicking the Properties button. In the Size box of the Font dialog box, select the size you want. At run time, however, set Size directly by specifying its setting for the Font object.