Options.AutoFormatAsYouTypeReplacePlainTextEmphasis 属性 (Word)

如果键入时手动强调字符自动替换为字符格式,则为 True。 例如,将“bold”更改为“ bold ”,将“underline”更改为“underline”。读取/写入 布尔值。

语法

expression。 AutoFormatAsYouTypeReplacePlainTextEmphasis

表达式 表示 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 支持和反馈,获取有关如何接收支持和提供反馈的指南。