LanguageID 属性 (Word)Selection.LanguageID property (Word)

返回或设置指定对象的语言。Returns or sets the language for the specified object. 可读写。Read/write .


expression.expression. LanguageID

_表达式_是必需的。expression Required. 表示 Selection 对象的变量。A variable that represents a Selection object.


对于自定义词典, 在指定LanguageID属性之前, 必须先将LanguageSpecific属性设置为TrueFor a custom dictionary, you must first set the LanguageSpecific property to True before specifying the LanguageID property. 特定于语言的自定义词典只能检查用该语言格式编写的文本。Custom dictionaries that are language-specific check only text that is formatted for that language.

根据您选择或安装的语言支持(如,美国英语)的不同,以上列出的某些常量可能不可用。Some of the constants listed above may not be available to you, depending on the language support (U.S. English, for example) that you have selected or installed.

另请参阅See also

Selection 对象Selection Object

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.