# SynonymList.Language Property

> Gets or sets the SynonymList's language.

- **Product:** TX Spell .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 7.0
- **Namespace:** `TXTextControl.Proofing`
- **Package:** `TXTextControl.TXSpell.WPF.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 WPF > Reference > TXTextControl.Proofing > SynonymList.Language Property
- **453 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/synonymlist/language-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/synonymlist/language-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/synonymlist/language-property/llms-full.txt

---

### Description

Gets or sets the SynonymList's language.

### Syntax

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

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

### Examples

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

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

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

### Remarks

The property is automatically set, if the name of the corresponding synonym list file contains language specific information (e.g. "th\_en\_US\_v2.dat" for English or "th\_de\_DE\_v2.dat" for German). Otherwise, the property returns null.

---

## Nearby

- **Previous:** [SynonymList.IsSelectedAsDefault Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/synonymlist/isselectedasdefault-property/llms-full.txt)
- **Next:** [SynonymList.Name Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/synonymlist/name-property/llms-full.txt)
