# Hyphenation

> Divide words at line ends in WPF apps with TX Spell .NET: Hunspell lists for 24 languages, a TextControl that hyphenates, and GetHyphenationPoints in code.

- **Product:** TX Spell .NET for WPF
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Spell .NET for WPF > Hyphenation
- **593 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/hyphenation/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/hyphenation/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/hyphenation/llms-full.txt

---

Hyphenation divides a word that doesn't fit at the end of a line instead of moving it to the next line as a whole. TX Spell .NET for WPF hyphenates in 24 languages, with the same component that checks spelling. Use it in two ways: automatically in a TX Text Control editor, or in your own code for any text.

### How Hyphenation Works

The rules for dividing words come from *hyphenation lists*, one file per language in the open source Hunspell format. The NuGet package brings the list for US English; the lists for other languages are part of the language archives Text Control offers for download.

![TX Text Control Words with a document whose lines end in divided words such as Win-dows, prop-erties and documenta-.](https://docs.textcontrol.com/assets/img/tx-spell-dotnet-wpf/hyphenation-in-words.f868d4d5.webp)

In a `TextControl`, the connected `TXSpellChecker` divides the last word of each full line with the list of the word's language, while the user types. In code, `TXSpell` and `TXSpellChecker` return the positions at which a word can be divided, and your code decides what to do with them.

### Find the Right Page

| If you want to | Read |
|---|---|
| Know where hyphenation lists come from, which languages have one, and how to change their settings | [Hyphenation Lists](https://docs.textcontrol.com/tx-spell-dotnet-wpf/hyphenation/lists/llms-full.txt) |
| Hyphenate the text of a TX Text Control editor automatically | [Hyphenation with TX Text Control](https://docs.textcontrol.com/tx-spell-dotnet-wpf/hyphenation/tx-text-control/llms-full.txt) |
| Get the hyphenation points of a word in code | [Hyphenating Text in Code](https://docs.textcontrol.com/tx-spell-dotnet-wpf/hyphenation/in-code/llms-full.txt) |
| Let users change the hyphenation settings | [Options Dialog](https://docs.textcontrol.com/tx-spell-dotnet-wpf/user-interface/options-dialog/#the-hyphenation-and-thesaurus-tabs) |
| Find out why words aren't hyphenated | [Dictionaries Not Found](https://docs.textcontrol.com/tx-spell-dotnet-wpf/troubleshooting/dictionaries/#words-aren-t-hyphenated-or-no-synonyms-are-found) |

### Where to Start

1. [Hyphenation with TX Text Control](https://docs.textcontrol.com/tx-spell-dotnet-wpf/hyphenation/tx-text-control/llms-full.txt), if your application has a TX Text Control editor: two properties turn hyphenation on.
2. [Hyphenation Lists](https://docs.textcontrol.com/tx-spell-dotnet-wpf/hyphenation/lists/llms-full.txt), before you hyphenate a language other than US English.
3. [Hyphenating Text in Code](https://docs.textcontrol.com/tx-spell-dotnet-wpf/hyphenation/in-code/llms-full.txt), for text that isn't in an editor.

### Pages in This Section

- [Hyphenation Lists](https://docs.textcontrol.com/tx-spell-dotnet-wpf/hyphenation/lists/llms-full.txt): the files, the languages that have one, how a list is chosen, its settings and loading it in code.
- [Hyphenation with TX Text Control](https://docs.textcontrol.com/tx-spell-dotnet-wpf/hyphenation/tx-text-control/llms-full.txt): turning hyphenation on, the ribbon, the language of the text and the `HyphenateWord` event.
- [Hyphenating Text in Code](https://docs.textcontrol.com/tx-spell-dotnet-wpf/hyphenation/in-code/llms-full.txt): `GetHyphenationPoints` and `GetHyphenationPoint` in a console application, and the hyphenation sample of the setup.

---

## In This Section

- [Hyphenating Text in Code](https://docs.textcontrol.com/tx-spell-dotnet-wpf/hyphenation/in-code/llms-full.txt): Hyphenate words in code with TXSpell.GetHyphenationPoints and GetHyphenationPoint: a C# console app with real output, other languages and the WPF setup sample.
- [Hyphenation Lists](https://docs.textcontrol.com/tx-spell-dotnet-wpf/hyphenation/lists/llms-full.txt): Find, install and choose hyph_*.dic hyphenation lists in WPF: the HyphenationLists folder, languages per archive, HyphenationLanguage in XAML, list settings.
- [Hyphenation With TX Text Control](https://docs.textcontrol.com/tx-spell-dotnet-wpf/hyphenation/tx-text-control/llms-full.txt): Hyphenate a WPF TextControl in XAML with SpellChecker and IsHyphenationEnabled, use the Proofing ribbon tab and text languages, and handle HyphenateWord.

---

## Nearby

- **Previous:** [Right-to-Left Languages](https://docs.textcontrol.com/tx-spell-dotnet-wpf/dictionaries/right-to-left/llms-full.txt)
- **Next:** [Hyphenation Lists](https://docs.textcontrol.com/tx-spell-dotnet-wpf/hyphenation/lists/llms-full.txt)
