# ServerTextControl.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 ServerTextControl through the SpellChecker property.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 21.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.Server.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Server.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl > ServerTextControl.IsLanguageDetectionEnabled Property
- **465 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/islanguagedetectionenabled-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/islanguagedetectionenabled-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/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 [ServerTextControl](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/llms-full.txt) through the [SpellChecker](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/spellchecker-property/llms-full.txt) property.

### Syntax

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

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

### Examples

The following example uses `ServerTextControl.IsLanguageDetectionEnabled` to enable automatic language detection. The configured value is checked before the workflow continues.

```csharp
textControl.IsLanguageDetectionEnabled = true;
if (textControl.IsLanguageDetectionEnabled)
{
    Console.WriteLine("Server Text Control: Is Language Detection Enabled is enabled.");
}
```

```vbnet
textControl.IsLanguageDetectionEnabled = True
If textControl.IsLanguageDetectionEnabled Then
    Console.WriteLine("Server Text Control: Is Language Detection Enabled is enabled.")
End If
```

---

## Nearby

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