# TXSpell.GetHyphenationPoint Method

> Returns the next hyphenation point for a specific word right before a defined divide position. Using the first implementation that point is caluclated by applying the default hyphenation list. The second implementation uses a hyphenation list of the TXSpell.HyphenationLists collection or a list from the default hyphenation lists folder that corresponds to the specified language parameter (second implementation). If there is no hyphenation point before that divide position and the position is less the word length, the method returns 0. For divide positions greater than or equal to the number of word characters, the method returns the word length.

- **Product:** TX Spell .NET for WPF
- **Section:** Reference
- **Kind:** Method
- **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.GetHyphenationPoint Method
- **1139 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/txspell/gethyphenationpoint-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/txspell/gethyphenationpoint-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/txspell/gethyphenationpoint-method/llms-full.txt

---

### Description

Returns the next hyphenation point for a specific word right before a defined divide position. Using the first implementation that point is caluclated 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 [TXSpell.HyphenationLists](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/txspell/hyphenationlists-property/llms-full.txt) collection or a list from the default hyphenation lists folder that corresponds to the specified language parameter (second implementation). If there is no hyphenation point before that divide position and the position is less the word length, the method returns 0. For divide positions greater than or equal to the number of word characters, the method returns the word length.

### Syntax

#### GetHyphenationPoint(string, int)

Returns the next hyphenation point for a specific word right before a defined divide position. That point is 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 GetHyphenationPoint(string word, int devidePosition);
```

```vbnet
Public Function GetHyphenationPoint(word As String, devidePosition As Integer) As Integer
```

| Parameter | Description |
|---|---|
| word | The word to hyphenate. |
| devidePosition | The defined divide position. |

#### GetHyphenationPoint(string, int, CultureInfo)

Returns the next hyphenation point for a specific word right before a defined divide position. That point is calculated by using the hyphenation list that corresponds to the specified language parameter

```csharp
public int GetHyphenationPoint(string word, int devidePosition, CultureInfo language);
```

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

| Parameter | Description |
|---|---|
| word | The word to hyphenate. |
| devidePosition | The defined divide position. |
| language | The language, which is used to calculate the hyphenation point. If the [TXSpell.HyphenationLists](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/txspell/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 TXSpell.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

The next hyphenation point right before the defined divide position.

### Examples

The following example retrieves hyphenation point from the txspell.

```csharp
var result = tXSpell.GetHyphenationPoint("Quarterly report", 100);
Console.WriteLine($"Get Hyphenation Point result: {result}");
```

```vbnet
Dim result = tXSpell.GetHyphenationPoint("Quarterly report", 100)
Console.WriteLine($"Get Hyphenation Point result: {result}")
```

---

## Nearby

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