# Dictionary.Language Property

> Gets or sets the dictionary's language.

- **Product:** TX Spell .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 3.0
- **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 > Dictionary.Language Property
- **466 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dictionary/language-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dictionary/language-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dictionary/language-property/llms-full.txt

---

### Description

Gets or sets the [dictionary's](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dictionary/llms-full.txt) language.

### Syntax

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

```vbnet
Public Property Language As CultureInfo
```

### Examples

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

```csharp
dictionary.Language = System.Globalization.CultureInfo.GetCultureInfo("en-US");
if (dictionary.Language != null)
{
    Console.WriteLine("Dictionary: Language is available.");
}
```

```vbnet
dictionary.Language = System.Globalization.CultureInfo.GetCultureInfo("en-US")
If dictionary.Language IsNot Nothing Then
    Console.WriteLine("Dictionary: Language is available.")
End If
```

### Remarks

The property is automatically set, if the name of the dictionary file contains language specific information (e.g. "en\_medical.txd" for English or "de\_CH\_frami.dic" for German (Switzerland)). Otherwise, the property returns null.

---

## Nearby

- **Previous:** [Dictionary.IsSpellCheckingEnabled Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dictionary/isspellcheckingenabled-property/llms-full.txt)
- **Next:** [Dictionary.Name Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dictionary/name-property/llms-full.txt)
