Invokes the built-in dialog box for setting the language of the selected text.

Introduced: X10.

LanguageDialog()

public DialogResult LanguageDialog();

Return Value

The return value can be one of the following values:

Examples

This example shows how to interact with the LanguageDialog.

textControl1.Text = "TXTextControl.TextControl.LanguageDialog";
TXTextControl.Selection _sel = new TXTextControl.Selection(0,40);
textControl1.Selection = _sel;
if (textControl1.LanguageDialog() == DialogResult.OK)
    {
     MessageBox.Show("the selected language could be set");
    }
    else {
       MessageBox.Show("the selected language could NOT be set");
    }