Options.AutoFormatAsYouTypeReplacePlainTextEmphasis 属性 (Word)

如此 如果 手动强调字符在键入时自动替换为字符格式。 例如,“粗体”更改为“ 粗体 ”,“下划线”更改为“下划线”。 Boolean 类型,可读写。

语法

expressionAutoFormatAsYouTypeReplacePlainTextEmphasis

表达 一个代表 Options 对象的变量。

示例

本示例启用将手动强调的字符替换为相应字符格式的功能。

Options.AutoFormatAsYouTypeReplacePlainTextEmphasis = True

This example returns the status of the Bold and underline with real formatting option on the AutoFormat As You Type tab in the AutoCorrect dialog box (Tools menu).

Dim blnAutoFormat as Boolean 
 
blnAutoFormat = _ 
 Options.AutoFormatAsYouTypeReplacePlainTextEmphasis

另请参阅

选项对象

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。