AutoFormatMatchParentheses 属性

       

如果该属性值为 True,则 Microsoft Word 在自动设置文档或区域的格式时,会更正不恰当匹配的括号。Boolean 类型,可读写。

expression.AutoFormatMatchParentheses

expression   必需。该表达式返回一个 Options 对象。

示例

本示例设置 Microsoft Word 自动更正不恰当匹配的括号,然后设置当前所选内容的格式。

Options.AutoFormatMatchParentheses = True
Selection.Range.AutoFormat