Invokes the built-in dialog box for setting the language of the selected text.
Introduced: X10.
public DialogResult LanguageDialog();
Public Function LanguageDialog() As DialogResult
The return value can be one of the following values:
This example shows how to interact with the Language
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");
}
TextControl1.Text = "TXTextControl.TextControl.LanguageDialog"
Dim _sel As TXTextControl.Selection = New TXTextControl.Selection(0, 40)
TextControl1.Selection = _sel
If TextControl1.LanguageDialog() = DialogResult.OK Then
MessageBox.Show("the selected language could be set")
Else
MessageBox.Show("the selected language could NOT be set")
End If