Share via


_XDocument4.Language Property

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

Namespace:  Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly:  Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.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

Implements

_XDocument3.Language
_XDocument2.Language
_XDocument.Language

Remarks

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

Important

This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.

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.SemiTrust Namespace