全部显示

SpellingErrorType 属性

       

返回拼写错误类型。WdSpellingErrorType,只读。

expression.SpellingErrorType

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

说明

使用 GetSpellingSuggestions 方法可以返回用来进行拼写替换的一个集合。如果一个单词拼错了,则 CheckSpelling 方法返回 True

示例

如果词典中没有活动文档中的第一个单词,则本示例在状态栏中显示“Unknown Word”。

Set suggs = ActiveDocument.Content.GetSpellingSuggestions
If suggs.SpellingErrorType = wdSpellingNotInDictionary Then
    StatusBar = "Unknown word"
End If