ComboBox.FontWeight 屬性 (Access)ComboBox.FontWeight property (Access)

使用 FontWeight 屬性來指定線條的寬度 Windows 用來顯示和列印控制項中的字元。Use the FontWeight property to specify the line width that Windows uses to display and print characters in a control. 可讀寫的 IntegerRead/write Integer.

語法Syntax

運算式FontWeightexpression.FontWeight

_運算式_代表**ComboBox** 物件的變數。expression A variable that represents a ComboBox object.

註解Remarks

FontWeight 屬性使用下列設定值。The FontWeight property uses the following settings.

設定Setting Visual BasicVisual Basic
Thin 100100
特淡Extra Light 200200
Light 300300
一般Normal 400400
Medium 500500
半粗體Semi-bold 600 個600
粗體Bold 700700
特粗體Extra Bold 800800
Heavy 900900

您可以在 Visual Basic 使用控制項的預設控制項樣式或**DefaultControl** 屬性來設定此屬性的預設值。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. 例如細 FontWeight 屬性設定可能會看起來相同為 [正常] 畫面上顯示但是列印時顯示。For example, a FontWeight property setting of Thin may look identical to Normal on screen but appear lighter when printed.

FontBold 屬性,也就是只適用於 Visual Basic 和巨集,也可以用來設定線條寬度的控制項或報表的文字設為粗體。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. FontBold 屬性可讓您快速的方式將文字設為粗體; FontWeight 屬性可讓您更精細的控制能力文字的線條寬度設定。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.

IfIf ThenThen
FontBold = FalseFontBold = False FontWeight = 正常 (400)FontWeight = Normal (400)
FontBold = TrueFontBold = True FontWeight = 粗體 (700)FontWeight = Bold (700)
FontWeight < 700FontWeight < 700 FontBold = FalseFontBold = False
FontWeight > = 700FontWeight > = 700 FontBold = TrueFontBold = True

另請參閱See also

支援和意見反應Support and feedback

有關於 Office VBA 或這份文件的問題或意見反應嗎?Have questions or feedback about Office VBA or this documentation? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.