Sets or retrieves a Microsoft Office InfoPath 2003 form's default language code.
expression.Language
expression Required. An expression that returns a reference to an XDocument object.
Security Level
2: 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.
Remarks
The language settings for an InfoPath form can also be accessed using the LanguageSettings property of the Application object.
Example
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:
XDocument.UI.Alert("The current language is: " + XDocument.Language);