Share via


_Application2.LanguageSettings Property

Gets a reference to the Microsoft Office LanguageSettings.

Namespace:  Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly:  Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.dll)

Syntax

'Declaration
ReadOnly Property LanguageSettings As Object
    Get
'Usage
Dim instance As _Application2
Dim value As Object

value = instance.LanguageSettings
Object LanguageSettings { get; }

Property Value

Type: System.Object

Implements

_Application.LanguageSettings

Remarks

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

Important

This member can be accessed without restrictions.

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

Important

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

See Also

Reference

_Application2 Interface

_Application2 Members

LanguageSettings Overload

Microsoft.Office.Interop.InfoPath.SemiTrust Namespace