ShowFormatError 属性

       

如果为 True,Microsoft Word 通过在文本(该文本的格式与文档中使用频繁的其他格式相似)下加弯曲下划线来标记不一致的格式。Boolean 类型,可读写。

expression.ShowFormatError

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

示例

本示例使 Word 可以保持文档中格式的修订,但不在文本下显示弯曲的下划线。

Sub ShowFormatErrors()

    With Options
        .FormatScanning = True  'Enables keeping track of formatting
        .ShowFormatError = False
    End With

End Sub