BoldRun 方法 (Word)Selection.BoldRun method (Word)

在当前局部添加粗体字符格式或删除该格式。Adds the bold character format to or removes it from the current run.

语法Syntax

expression.expression. BoldRun

_表达式_是必需的。expression Required. 表示 Selection 对象的变量。A variable that represents a Selection object.

备注Remarks

如果该局部含有加粗和非加粗两种文字,该方法将为整个局部添加粗体格式。If the run contains a mix of bold and non-bold text, this method adds the bold character format to the entire run.

示例Example

本示例将当前选定内容转换为加粗格式。This example toggles the bold formatting for the current selection.

Selection.BoldRun

另请参阅See also

Selection 对象Selection Object

支持和反馈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.