# TXSpell.Language Property

> Gets or sets the name of a dictionary that is located at the default dictionary folder. When using the Language property, the Dictionary.IsSelectedAsDefault property of the chosen dictionary is set to true. The default value is "(Auto)".

- **Product:** TX Spell .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Namespace:** `TXTextControl.Proofing`
- **Package:** `TXTextControl.TXSpell.WinForms.SDK` (assembly `TXSpell.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TXSpell.Core.SDK` (assembly `TXSpell.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXSpell.dll` from the setup
- **Path:** TX Spell .NET for Windows Forms > Reference > TXTextControl.Proofing > TXSpell.Language Property
- **939 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspell/language-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspell/language-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspell/language-property/llms-full.txt

---

### Description

Gets or sets the name of a [dictionary](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dictionary/llms-full.txt) that is located at the default dictionary folder. When using the Language property, the [Dictionary.IsSelectedAsDefault](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dictionary/isselectedasdefault-property/llms-full.txt) property of the chosen [dictionary](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dictionary/llms-full.txt) is set to true. The default value is `"(Auto)"`.

### Syntax

```csharp
public string Language { get; set; }
```

```vbnet
Public Property Language As String
```

### Members

| Value | Description |
|---|---|
| "\_\_.dic" | The corresponding [OpenOfficeDictionary](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/openofficedictionary/llms-full.txt) is added to the [TXSpell.Dictionaries](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspell/dictionaries-property/llms-full.txt) collection (e.g. "en\_US.dic" for the US english dictionary). |
| "\_\_.txd" | The corresponding [UserDictionary](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/userdictionary/llms-full.txt) is added to the [TXSpell.Dictionaries](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspell/dictionaries-property/llms-full.txt) collection (e.g. "MyUserDictionary.txd" for an user dictionary that is located inside the default dictionary folder). |
| "(Auto)" | That [Dictionary](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dictionary/llms-full.txt) is added to the [TXSpell.Dictionaries](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspell/dictionaries-property/llms-full.txt) collection that equals to the language of the application environment. If the default dictionary folder does not contain such a dictionary, a dictionary is chosen that corresponds roughly to the environment language (e.g. the application environment is "en\_GB", but the default dictionary folder only contains an "en\_US" and a "de\_DE" dictionary. In this case, the "en\_US" dictionary is chosen.). In all other cases (e.g. a German environment, but no German dictionary available), the "en\_US" dictionary or (if no "en\_US" dictionary available) the first dictionary inside the default dictionary folder is loaded. The TXSpell.Language Property is set to "(none)", if the default dictionary folder does not contain any dictionaries. |
| "(none)" | No [dictionary](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dictionary/llms-full.txt) is set. |

### Examples

The following example uses `TXSpell.Language` to configure language as part of the txspell workflow. The configured value is checked before the workflow continues.

```csharp
tXSpell.Language = "Quarterly report";
if (!string.IsNullOrWhiteSpace(tXSpell.Language))
{
    Console.WriteLine($"Language: {tXSpell.Language}");
}
```

```vbnet
tXSpell.Language = "Quarterly report"
If Not String.IsNullOrWhiteSpace(tXSpell.Language) Then
    Console.WriteLine($"Language: {tXSpell.Language}")
End If
```

### Remarks

The property is reset to "(Auto)", if there is no corresponding dictionary in the default dictionary folder and to "(none)", if the directory contains no dictionary.

---

## Nearby

- **Previous:** [TXSpell.IncorrectWords Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspell/incorrectwords-property/llms-full.txt)
- **Next:** [TXSpell.LanguageRecognitionDirectoryPath Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspell/languagerecognitiondirectorypath-property/llms-full.txt)
