Share via


_XDocument4.Language property

Gets or sets a Microsoft InfoPath form's default language code.

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

Syntax

'Declaration
Property Language As String
    Get
    Set
'Usage
Dim instance As _XDocument4
Dim value As String

value = instance.Language

instance.Language = value
string Language { get; set; }

Property value

Type: System.String
Returns String.

Implements

_XDocument3.Language

Remarks

The language settings for an InfoPath form can also be accessed using the LanguageSettings() property.

Examples

In the following example, the Language property of the XDocument object is used to display a form's current language setting in a message box:

thisXDocument.UI.Alert("The current language is: " + thisXDocument.Language);

See also

Reference

_XDocument4 interface

_XDocument4 members

Language overload

Microsoft.Office.Interop.InfoPath namespace