Edit

Share via


_XDocument3.Language Property

Definition

Gets or sets a Microsoft Office 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

The form's default language code.

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 LanguageSettings property.

Applies to