Share via


_Application3.LanguageSettings Property

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

Namespace: Microsoft.Office.Interop.InfoPath
Assembly: Microsoft.Office.Interop.InfoPath (in microsoft.office.interop.infopath.dll)

Syntax

'Declaration
'Usage

Property Value

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

Remarks

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

Example

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 12.0 Object Library.

Important

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

See Also

Reference

_Application3 Interface
_Application3 Members
Microsoft.Office.Interop.InfoPath Namespace