TX Text Control .NET for WPF

LanguageDialog Method

Method|Introduced in 20.0
Namespace
TXTextControl.WPF
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.WPF.dll from the private NuGet feed or Text Control Offline Packages

Description

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

Syntax

public DialogResult LanguageDialog();

Return Value

The return value can be one of the following values:

ResultMeaning
DialogResult.OKThe dialog has been left with the OK button and the selected language could be set.
DialogResult.CancelThe dialog has been left with the Cancel button.
DialogResult.NoneThe 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}");