_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
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);