Font

This property returns a Font object.

Syntax

object.Font

Parameters

object
Object expression that evaluates to a control.

Remarks

Use the Font property of an object to identify a specific Font object whose properties you want to use.

The following code example shows how to change the Bold property setting of a Font object identified by the Font property of a TextBox object.

txtFirstName.Font.Bold = True