| WPS 开发人员参考 |
| Application.GetSpellingSuggestions 方法 |
语法
表达式.GetSpellingSuggestions(Word, CustomDictionary, IgnoreUppercase, MainDictionary, SuggestionMode, CustomDictionary2, CustomDictionary3, CustomDictionary4, CustomDictionary5, CustomDictionary6, CustomDictionary7, CustomDictionary8, CustomDictionary9, CustomDictionary10)
表达式 必选。一个代表 Application 对象的变量。
参数
| 名称 | 必选/可选 | 数据类型 | 说明 |
|---|---|---|---|
| Word | 必选 | String |
将接受拼写检查的单词。 |
|
CustomDictionary |
可选 | Variant | 可以是返回 Dictionary 对象的表达式,也可以是自定义词典的文件名。 |
| IgnoreUppercase | 可选 | Variant | 如果为 True,则忽略全部大写的单词。如果省略此参数,则使用 IgnoreUppercase 属性的当前值。 |
|
MainDictionary |
可选 | Variant | 可以是返回 Dictionary 对象的表达式,也可以是主词典的文件名。如果没有指定主词典,则 WPS 使用与该范围内第一个单词的语言格式相对应的主词典。 |
| SuggestionMode | 可选 | Variant | 指定 WPS 提出拼写建议的方式。可以是下列 WdSpellingWordType 常量之一:wdAnagram、wdSpellword 或 wdWildcard。默认值为 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 对象的表达式,也可以是自定义词典的文件名。 |
说明
如果此单词拼写正确,则 SpellingSuggestions 对象的 Count 属性返回 0(零)。