LanguageDialog Method
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Invokes the built-in dialog box for setting the language of the selected text.
Syntax
public DialogResult LanguageDialog();Public Function LanguageDialog() As DialogResultReturn Value
The return value can be one of the following values:
| Result | Meaning |
|---|---|
| DialogResult.OK | The dialog has been left with the OK button and the selected language could be set. |
| DialogResult.Cancel | The dialog has been left with the Cancel button. |
| DialogResult.None | The selected language could not be set. |
Examples
The following example opens the language dialog for the text control.
var result = textControl.LanguageDialog();
Console.WriteLine($"Language Dialog result: {result}");Dim result = textControl.LanguageDialog()
Console.WriteLine($"Language Dialog result: {result}")