# HyphenationList Constructor

> Initializes a new instance of the HyphenationList class.

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

---

### Description

Initializes a new instance of the [HyphenationList](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/hyphenationlist/llms-full.txt) class.

### Syntax

#### HyphenationList(string)

Initializes a new instance of the [HyphenationList](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/hyphenationlist/llms-full.txt) class by loading a Hunspell Open Source hyphenation dictionary from a file.

```csharp
public HyphenationList(string hyphenationListPath);
```

```vbnet
Public Sub New(hyphenationListPath As String)
```

| Parameter | Description |
|---|---|
| hyphenationListPath | Specifies the path for the Hunspell Open Source hyphenation dictionary dict file. By specifying only the the dictionary name without any file path, the corresponding hyphenation dictionary file of the default hyphenation list folder is used. The name of the specified Hunspell Open Source hyphenation dictionary file must start with "hyph\_" and end with ".dic". If the file does not exist, an ArgumentException is thrown. |

#### HyphenationList(string\[\], CultureInfo)

Initializes a new instance of the [HyphenationList](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/hyphenationlist/llms-full.txt) class by loading a hyphenation dictionary from string arrays that represent the content of a Hunspell Open Source hyphenation dictionary

```csharp
public HyphenationList(string[] hyphenationListLines, CultureInfo language);
```

```vbnet
Public Sub New(hyphenationListLines As String(), language As CultureInfo)
```

| Parameter | Description |
|---|---|
| hyphenationListLines | The string array that represents the content of a Hunspell Open Source hyphenation dictionary file. Each string of this array is considered as a line of the dictionary file. |
| language | Specifies the language of the hyphenation list. |

### Examples

The following example creates a Hyphenation List instance and configures its min syllables after compound hyphenation point setting for a document workflow.

```csharp
TXTextControl.Proofing.HyphenationList hyphenationList = new("document.docx");
hyphenationList.MinSyllablesAfterCompoundHyphenationPoint = 10;
```

```vbnet
Dim hyphenationList As New TXTextControl.Proofing.HyphenationList("document.docx")
hyphenationList.MinSyllablesAfterCompoundHyphenationPoint = 10
```

---

## Nearby

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