Visual Basic Reference

Size Property (Font)

See Also    Example    Applies To

Returns or sets the font size used in the Font object.

Syntax

object**.Size** [= number]

The Size property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
number A numeric expression specifying the size of the font in points.

Remarks

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

The Font object isn't directly available at design time. Instead you 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.