# TXSpell.HyphenationLanguage Property

> Gets or sets the name of a hyphenation list that is located at the default hyphenation lists folder. When using the HyphenationLanguage property, the Hyphenation.IsSelectedAsDefault property of the chosen hyphenation list is set to true. The default value is "(Auto)".

- **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 > TXSpell.HyphenationLanguage Property
- **921 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/txspell/hyphenationlanguage-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/txspell/hyphenationlanguage-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/txspell/hyphenationlanguage-property/llms-full.txt

---

### Description

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

### Syntax

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

```vbnet
Public Property HyphenationLanguage As String
```

### Members

| Value | Description |
|---|---|
| "hyph\_\_.dic" | The corresponding [hyphenation list](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/hyphenationlist/llms-full.txt) is added to the [TXSpell.HyphenationLists](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/txspell/hyphenationlists-property/llms-full.txt) collection (e.g. "hyph\_en\_US.dic" for the US English hyphenation list). |
| "(Auto)" | That [hyphenation list](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/hyphenationlist/llms-full.txt) is added to the [TXSpell.HyphenationLists](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/txspell/hyphenationlists-property/llms-full.txt) collection that equals to the [language](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/dictionary/language-property/llms-full.txt) of the [default spell check dictionary](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/dictionary/isselectedasdefault-property/llms-full.txt). If the default hyphenation lists folder does not contain such a hyphenation list, a list is chosen that corresponds roughly to the dictionary's language (e.g. the default dictionary is "en\_GB", but the default hyphenation lists folder only contains a "hyph\_en\_US.dic" and a "hyph\_de\_DE.dic" hyphenation list. In this case, the "hyph\_en\_US.dic" hyphenation list is chosen.). In case that no default spell check dictionary is selected (TXSpell.Language is set to "(none)"), a hyphenation list is chosen that equals or roughly equals to the language of the application environment. |
| "(none)" | No [hyphenation list](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/hyphenationlist/llms-full.txt) is set. |

### Examples

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

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

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

### Remarks

The property is reset to "(none)", if there is no corresponding hyphenation list in the default hyphenation lists folder that corresponds to the language of the default dictionary's language or the language of the application environment.

---

## Nearby

- **Previous:** [TXSpell.GetHyphenationPoints Method](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/txspell/gethyphenationpoints-method/llms-full.txt)
- **Next:** [TXSpell.HyphenationLists Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/txspell/hyphenationlists-property/llms-full.txt)
