Edit

Share via


_XDocument2.Language Property

Definition

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

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.

Important: This member 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.

Applies to