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

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


expression.expression. LanguageIDOther

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


推荐使用本方法,来设置或返回在 Microsoft Word 从右向左语言版本所创建的文档中西文文字所用的语言。This is the recommended way to return or set the language of Latin text in a document created in a right-to-left language version of Microsoft Word.


本示例将选定内容的语言设置为法语。This example sets the language of the selection to French.

Selection.LanguageIDOther = wdFrench

另请参阅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.