# Font
{: .no_toc }

Returns the font the container would like its embedded controls to use by default, as an **stdole.IFontDisp**. Read-only.

Syntax: *object*.**Font**

*object*
: *required* An object expression that evaluates to an **AmbientProperties** object.

A control that does not have its own font explicitly set should display text using this font, so that its captions and labels match the typography of the surrounding container. The returned **IFontDisp** exposes properties such as **Name**, **Size**, **Bold**, **Italic**, and **Underline**.

### Example

This example responds to an ambient **Font** change and applies it to the control's caption font.

```tb check_build
Private Sub UserControl_AmbientChanged(PropertyName As String)
    Select Case PropertyName
        Case "Font"
            Set UserControl.Font = Ambient.Font
    End Select
End Sub
```

### See Also

- [BackColor](/tB/Packages/VBRUN/AmbientProperties/BackColor.md) property
- [ForeColor](/tB/Packages/VBRUN/AmbientProperties/ForeColor.md) property
- [TextAlign](/tB/Packages/VBRUN/AmbientProperties/TextAlign.md) property
