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
ReadOnly Property LanguageSettings As Object
    Get
'Usage
Dim instance As _Application3
Dim value As Object

value = instance.LanguageSettings
Object LanguageSettings { get; }

Property Value

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

Implements

_Application2.LanguageSettings

Remarks

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

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.

See Also

Reference

_Application3 Interface

_Application3 Members

LanguageSettings Overload

Microsoft.Office.Interop.InfoPath Namespace