# TextControl.IsLanguageDetectionEnabled Property

> Gets or sets a value indicating whether language detection is active or not. If language detection is enabled, a language is automatically set for all pieces of text with a neutral language. To use this feature, at least the TXSpell 5.0 spell checking component must be connected with the TextControl through the SpellChecker property.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 21.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Windows.Forms.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > TextControl.IsLanguageDetectionEnabled Property
- **356 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/islanguagedetectionenabled-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/islanguagedetectionenabled-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/islanguagedetectionenabled-property/llms-full.txt

---

### Description

Gets or sets a value indicating whether language detection is active or not. If language detection is enabled, a language is automatically set for all pieces of text with a neutral language. To use this feature, at least the TXSpell 5.0 spell checking component must be connected with the [TextControl](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/llms-full.txt) through the [SpellChecker](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/spellchecker-property/llms-full.txt) property.

### Syntax

```csharp
public bool IsLanguageDetectionEnabled { get; set; }
```

```vbnet
Public Property IsLanguageDetectionEnabled As Boolean
```

### Examples

The following example uses `TextControl.IsLanguageDetectionEnabled` to enable automatic language detection. The change is then applied to the active document or user interface.

```csharp
textControl.IsLanguageDetectionEnabled = true;
textControl.Update();
```

```vbnet
textControl.IsLanguageDetectionEnabled = True
textControl.Update()
```

---

## Nearby

- **Previous:** [TextControl.IsHyphenationEnabled Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/ishyphenationenabled-property/llms-full.txt)
- **Next:** [TextControl.IsSpellCheckingEnabled Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/isspellcheckingenabled-property/llms-full.txt)
