Skip to content

Latest commit

 

History

History
58 lines (41 loc) · 1.93 KB

Access.TextBox.FontWeight.md

File metadata and controls

58 lines (41 loc) · 1.93 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
TextBox.FontWeight property (Access)
vbaac10.chm11086
vbaac10.chm11086
Access.TextBox.FontWeight
4dbf8092-c09c-c6ec-9476-20af2e9cf051
03/02/2019
medium

TextBox.FontWeight property (Access)

Use the FontWeight property to specify the line width that Windows uses to display and print characters in a control. Read/write Integer.

Syntax

expression.FontWeight

expression A variable that represents a TextBox object.

Remarks

The FontWeight property uses the following settings.

Setting Visual Basic
Thin 100
Extra Light 200
Light 300
Normal 400
Medium 500
Semi-bold 600
Bold 700
Extra Bold 800
Heavy 900

You can set the default for this property by using a control's default control style or the DefaultControl property in Visual Basic.

A font's appearance on screen and in print may differ, depending on your computer and printer. For example, a FontWeight property setting of Thin may look identical to Normal on screen but appear lighter when printed.

The FontBold property, which is available only in Visual Basic and macros, can also be used to set the line width for a control's or report's text to bold. The FontBold property gives you a quick way to make text bold; the FontWeight property gives you finer control over the line width setting for text. The following table shows the relationship between these properties' settings.

If Then
FontBold = False FontWeight = Normal (400)
FontBold = True FontWeight = Bold (700)
FontWeight < 700 FontBold = False
FontWeight > = 700 FontBold = True

See also

[!includeSupport and feedback]