# TXSpellChecker.GetHyphenationPoints Method

> Returns an array of all hyphenation points for a word. Using the first implementation these points are calculated by applying the default hyphenation list. The second implementation uses a hyphenation list of the TXSpellChecker.HyphenationLists collection or a list from the default hyphenation lists folder that corresponds to the specified language parameter (second implementation).

- **Product:** TX Spell .NET for WPF
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 4.0
- **Namespace:** `TXTextControl.WPF.Proofing`
- **Package:** `TXTextControl.TXSpell.WPF.SDK` (assembly `TXSpell.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXSpell.WPF.dll` from the setup
- **Path:** TX Spell .NET for WPF > Reference > TXTextControl.WPF.Proofing > TXSpellChecker.GetHyphenationPoints Method
- **1097 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/gethyphenationpoints-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/gethyphenationpoints-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/gethyphenationpoints-method/llms-full.txt

---

### Description

Returns an array of all hyphenation points for a word. Using the first implementation these points are calculated by applying the [default hyphenation list](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/hyphenationlist/isselectedasdefault-property/llms-full.txt). The second implementation uses a [hyphenation list](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/hyphenationlist/llms-full.txt) of the [TXSpellChecker.HyphenationLists](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/hyphenationlists-property/llms-full.txt) collection or a list from the default hyphenation lists folder that corresponds to the specified language parameter (second implementation).

### Syntax

#### GetHyphenationPoints(string)

Returns an array of all hyphenation points for a word. These points are calculated by using the [default hyphenation list](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/hyphenationlist/isselectedasdefault-property/llms-full.txt).

```csharp
public int[] GetHyphenationPoints(string word);
```

```vbnet
Public Function GetHyphenationPoints(word As String) As Integer()
```

| Parameter | Description |
|---|---|
| word | The word to hyphenate. |

#### GetHyphenationPoints(string, CultureInfo)

Returns an array of all hyphenation points for a word. These points are calculated by using the hyphenation list that corresponds to the specified language parameter

```csharp
public int[] GetHyphenationPoints(string word, CultureInfo language);
```

```vbnet
Public Function GetHyphenationPoints(word As String, language As CultureInfo) As Integer()
```

| Parameter | Description |
|---|---|
| word | The word to hyphenate. |
| language | The language, which is used to calculate the hyphenation points. If the [TXSpellChecker.HyphenationLists](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/hyphenationlists-property/llms-full.txt) collection does not contain a [hyphenation list](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/hyphenationlist/llms-full.txt), where its [language](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/hyphenationlist/language-property/llms-full.txt) does not equal exactly to the defined language parameter, the default hyphenation lists folder is examined for such a list. In case no corresponding list was found, both, first the TXSpellChecker.HyphenationLists collection and finally the default hyphenation lists folder, are examined for a hyphenation list that equals roughly to specified language (e.g. the language parameter stands for English (USA) and the hyphenation list's language property represents English (Great Britain)). |

### Return Value

An array of all hyphenation points for the defined word.

### Examples

The following example retrieves hyphenation points from the txspell checker.

```csharp
int[] results = tXSpellChecker.GetHyphenationPoints("Quarterly report", System.Globalization.CultureInfo.GetCultureInfo("en-US"));
foreach (int int32 in results)
{
    Console.WriteLine(int32);
}
```

```vbnet
Dim results As Integer() = tXSpellChecker.GetHyphenationPoints("Quarterly report", System.Globalization.CultureInfo.GetCultureInfo("en-US"))
For Each int32 As Integer In results
    Console.WriteLine(int32)
Next
```

---

## Nearby

- **Previous:** [TXSpellChecker.GetHyphenationPoint Method](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/gethyphenationpoint-method/llms-full.txt)
- **Next:** [TXSpellChecker.GetMenuItems Method](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/getmenuitems-method/llms-full.txt)
