WPS 基础接口 > 文字 API 参考 > Application > 方法 > Application.GetSpellingSuggestions 方法
返回一个 SpellingSuggestions 集合,该集合代表指定单词的建议拼写替换单词。

语法

表达式.GetSpellingSuggestions(Word, CustomDictionary, IgnoreUppercase, MainDictionary, SuggestionMode, CustomDictionary2, CustomDictionary3, CustomDictionary4, CustomDictionary5, CustomDictionary6, CustomDictionary7, CustomDictionary8, CustomDictionary9, CustomDictionary10)

表达式   必选。一个代表 Application 对象的变量。

参数

名称必选/可选数据类型说明
Word必选String将接受拼写检查的单词。
IgnoreUppercase可选Variant 如果为 True,则忽略全部大写的单词。如果省略此参数,则使用 IgnoreUppercase 属性的当前值。
SuggestionMode可选Variant指定 WPS 提出拼写建议的方式。可以是下列 WdSpellingWordType 常量之一:wdAnagramwdSpellwordwdWildcard。默认值为 WdSpellword

说明

如果此单词拼写正确,则 SpellingSuggestions 对象的 Count 属性返回 0(零)。


请参阅