浏览器应用集成嵌入WPS指南 > 文字 API 参考 > Range > 方法 > Range.GetSpellingSuggestions 方法
返回一个 SpellingSuggestions 集合,该集合代表指定范围内第一个单词的建议拼写替换单词。

语法

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

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

参数

名称必选/可选数据类型说明
CustomDictionary可选Variant可以是返回 Dictionary 对象的表达式,也可以是自定义词典的文件名。
IgnoreUppercase可选Variant 如果该参数值为 True,则忽略全部大写的单词。如果省略此参数,则使用 IgnoreUppercase 属性的当前值。
MainDictionary可选Variant可以是返回 Dictionary 对象的表达式,也可以是主词典的文件名。如果没有指定主词典,则 WPS 使用与该范围内第一个单词的语言格式相对应的主词典。
SuggestionMode 可选 Variant 指定 WPS 提出拼写建议的方式。可以是下列 WdSpellingWordType 常量之一。默认值为 wdSpellword
CustomDictionary2 可选 Variant 返回Dictionary对象的表达式或其他自定义词典的文件名。您最多可以指定九个其他字典。
CustomDictionary3 可选 Variant 返回Dictionary对象的表达式或其他自定义词典的文件名。您最多可以指定九个其他字典。
CustomDictionary4 可选 Variant 返回Dictionary对象的表达式或其他自定义词典的文件名。您最多可以指定九个其他字典。
CustomDictionary5 可选 Variant 返回Dictionary对象的表达式或其他自定义词典的文件名。您最多可以指定九个其他字典。
CustomDictionary6 可选 Variant 返回Dictionary对象的表达式或其他自定义词典的文件名。您最多可以指定九个其他字典。
CustomDictionary7 可选 Variant 返回Dictionary对象的表达式或其他自定义词典的文件名。您最多可以指定九个其他字典。
CustomDictionary8 可选 Variant 返回Dictionary对象的表达式或其他自定义词典的文件名。您最多可以指定九个其他字典。
CustomDictionary9 可选 Variant 返回Dictionary对象的表达式或其他自定义词典的文件名。您最多可以指定九个其他字典。
CustomDictionary10可选Variant返回Dictionary对象的表达式或其他自定义词典的文件名。您最多可以指定九个其他字典。