Edit

Share via


_XDocument4.Language Property

Definition

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

public:
 property System::String ^ Language { System::String ^ get(); void set(System::String ^ value); };
public string Language { get; set; }
member this.Language : string with get, set
Public Property Language As String

Property Value

Returns String.

Implements

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.<span class="label">Language</span>);

Remarks

The language settings for an InfoPath form can also be accessed using the Microsoft.Office.Interop.InfoPath._Application4.LanguageSettings property.

Applies to