全部显示

Language 属性

       

返回一个 MsoLanguageID 常量,该常量代表 Microsoft Word 用户界面选定的语言。

expression.Language

expression   必需。该表达式返回一个 Application 对象。

说明

该属性的值与下列表达式的返回值相同:

Application.LanguageSettings _
    .LanguageID(msoLanguageIDUI)

示例

本示例显示一条消息,表明 Microsoft Word 用户界面所选语言是否是英语(美国)。

Sub LangSetting()
    If Application.Language = msoLanguageIDEnglishUS Then
        MsgBox "The user interface language is U.S. English."
    Else
        MsgBox "The user interface language is not U.S. English."
    End If
End Sub