_Application3.LanguageSettings Property

Definition

Gets a reference to a Microsoft Office LanguageSettings object that represents the language settings of the current user.

public:
 property System::Object ^ LanguageSettings { System::Object ^ get(); };
public object LanguageSettings { get; }
member this.LanguageSettings : obj
Public ReadOnly Property LanguageSettings As Object

Property Value

A reference to a Microsoft Office LanguageSettings object that represents the language settings of the current user.

Implements

Examples

The following example uses the LanguageID property of the LanguageSettings object to return the LCID value (a four-digit number) for the language that is currently being used for the Office help system:

LanguageSettings languageSettings = (LanguageSettings) thisApplication.LanguageSettings;   
int lcid = languageSettings.get_LanguageID(MsoAppLanguageID.msoLanguageIDHelp);

Note: The above example requires the Microsoft.Office.Core namespace and a reference to the Microsoft Office 14.0 Object Library.

Important: The above example requires the form have a Full Trust Security Level.

The following example uses the LanguageID property of the LanguageSettings object to return the LCID value (a four-digit number) for the language that is currently being used for the Office help system:

LanguageSettings languageSettings = (LanguageSettings) thisApplication.LanguageSettings;   
int lcid = languageSettings.get_LanguageID(MsoAppLanguageID.msoLanguageIDHelp);

Note: The above example requires the Microsoft.Office.Core namespace and a reference to the Microsoft Office 14.0 Object Library.

Important: The above example requires the form have a Full Trust Security Level.

Remarks

After you establish a reference to the LanguageSettings object, you can access all the properties and methods of the object.

Applies to