# TextControl.LanguageDialog Method

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

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 20.0
- **Namespace:** `TXTextControl.WPF`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.WPF.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF > TextControl.LanguageDialog Method
- **369 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/languagedialog-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/languagedialog-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/languagedialog-method/llms-full.txt

---

### Description

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

### Syntax

```csharp
public DialogResult LanguageDialog();
```

```vbnet
Public Function LanguageDialog() As DialogResult
```

### Return 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.

```csharp
var result = textControl.LanguageDialog();
Console.WriteLine($"Language Dialog result: {result}");
```

```vbnet
Dim result = textControl.LanguageDialog()
Console.WriteLine($"Language Dialog result: {result}")
```

---

## Nearby

- **Previous:** [TextControl.Landscape Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/landscape-property/llms-full.txt)
- **Next:** [TextControl.Lines Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/lines-property/llms-full.txt)
