XDocument.Language Property
InfoPath Developer Reference |
Sets or retrieves the xml:lang attribute of a Microsoft Office InfoPath 2007 form's underlying XML document. Read/write
Version Information
Version Added: InfoPath 2003
Syntax
expression.Language
expression An expression that returns a XDocument object.
Return Value
String
Remarks
The LanguageSettings property of the Application object has no relation to this Language property or to the xml:lang attribute of the form's underlying XML document.
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.
Example
In the following example, the Language property of the XDocument object is used to display the value of the xml:lang attribute of a form's underlying XML document in a message box:
JScript |
---|
|
See Also