# HyphenationListCollection.Add Method

> Adds objects of the type HyphenationList to the collection.

- **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 > HyphenationListCollection.Add Method
- **492 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/hyphenationlistcollection/add-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/hyphenationlistcollection/add-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/hyphenationlistcollection/add-method/llms-full.txt

---

### Description

Adds objects of the type [HyphenationList](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/hyphenationlist/llms-full.txt) to the [collection](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/hyphenationlistcollection/llms-full.txt).

### Syntax

```csharp
public int Add(HyphenationList hyphenationList);
```

```vbnet
Public Function Add(hyphenationList As HyphenationList) As Integer
```

### Parameters

| Parameter | Description |
|---|---|
| hyphenationList | Specifies the [HyphenationList](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/hyphenationlist/llms-full.txt). |

### Return Value

The [collection](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/hyphenationlistcollection/llms-full.txt) index at which the [HyphenationList](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/hyphenationlist/llms-full.txt) has been added.

### Examples

The following example adds an item to the hyphenation list collection.

```csharp
var result = hyphenationListCollection.Add(new TXTextControl.Proofing.HyphenationList("document.docx"));
Console.WriteLine($"Add result: {result}");
```

```vbnet
Dim result = hyphenationListCollection.Add(New TXTextControl.Proofing.HyphenationList("document.docx"))
Console.WriteLine($"Add result: {result}")
```

---

## Nearby

- **Previous:** [HyphenationListCollection Class](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/hyphenationlistcollection/llms-full.txt)
- **Next:** [HyphenationListCollection.GetItem Method](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/hyphenationlistcollection/getitem-method/llms-full.txt)
