The property used to set bold text is FontBold, while the FontItalic property is used to set whether the text is italicized, the FontUnderLine property is used to set whether the text is underlined, and the FontSize property is used to set the font size of the text.
#The property used to set whether the text font is bold is FontBold.
FontItalic is used to set whether the text is italic, FontUnderLine is used to set whether the text is underlined, FontSize is used to set the font size of the text, and FontBold is used to set whether the text is bold.
Related introduction:
You can use the FontBold property to specify whether the font is bold. The style appears in the following situations:
When displaying or printing controls on forms and reports .
When using the Print method on the report.
Read/write Boolean.
Syntax
表达式。FontBold _表达式_一个代表**TextBox** 对象的变量。
Remarks
The FontBold property uses the following settings.
Note
设置说明 True文本加粗。 False(默认值)文本不加粗。
To use the FontBold property in a report, first create a Print event procedure to output the desired text.
The appearance of fonts on the screen and in print may vary, depending on the computer and printer used.
Relationship between properties , which are available in property sheet controls, can also be used to set the line width of the control's text. The FontBold property lets you quickly make text bold; the relationship between the properties gives you more control over the line width setting of text. The following table lists the relationship between these property settings:
Table 2
IfThen FontBold = False粗细 = 正常 (400) FontBold = True粗细 = 加粗 (700) FontWeight < 700FontBold = False FontWeight > = 700FontBold = True
The above is the detailed content of What is the property used to set bold text?. For more information, please follow other related articles on the PHP Chinese website!