# HyphenationList.Language Property

> Gets or sets the hyphenation list's language.

- **Product:** TX Spell .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 4.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 > HyphenationList.Language Property
- **476 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/hyphenationlist/language-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/hyphenationlist/language-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/hyphenationlist/language-property/llms-full.txt

---

### Description

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

### Syntax

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

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

### Examples

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

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

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

### Remarks

The property is automatically set, if the name of the hyphenation dictionary file contains language specific information (e.g. "hyph\_en.dic" for English or "hyph\_de\_CH.dic" for German (Switzerland)). Otherwise, the property returns null.

---

## Nearby

- **Previous:** [HyphenationList.IsSelectedAsDefault Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/hyphenationlist/isselectedasdefault-property/llms-full.txt)
- **Next:** [HyphenationList.MinCharsAtWordBegin Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/hyphenationlist/mincharsatwordbegin-property/llms-full.txt)
