WPS 基础接口 > 文字 API 参考 > Application > 方法 > Application.CheckSpelling 方法
检查字符串的拼写错误。返回一个 Boolean 类型的值,以显示字符串是否包含拼写错误。如果字符串未包含拼写错误,则该值为 True

语法

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

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

参数

名称必选/可选数据类型说明
Word必选String要对其进行拼写检查的文本。
CustomDictionary可选Variant 可以是返回 Dictionary 对象的表达式,也可以是自定义词典的文件名。
IgnoreUppercase可选Variant 如果忽略大小写,则该属性值为 True。如果省略该参数,则使用 IgnoreUppercase 属性的当前值。
MainDictionary可选Variant可以是返回 Dictionary 对象的表达式,也可以是主词典的文件名。
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 对象的表达式,也可以是附加的自定义词典的文件名。

返回值
Boolean


请参阅