Options.AutoFormatAsYouTypeReplacePlainTextEmphasis 属性 (Word)
如此 如果 手动强调字符在键入时自动替换为字符格式。 例如,“粗体”更改为“ 粗体 ”,“下划线”更改为“下划线”。 Boolean 类型,可读写。
语法
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 支持和反馈,获取有关如何接收支持和提供反馈的指南。
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈