# SynonymListCollection.Add Method

> Adds objects of type SynonymList to the collection.

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

---

### Description

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

### Syntax

```csharp
public int Add(SynonymList synonymList);
```

```vbnet
Public Function Add(synonymList As SynonymList) As Integer
```

### Parameters

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

### Return Value

The [collection](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/synonymlistcollection/llms-full.txt) index where the [SynonymList](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/synonymlist/llms-full.txt) has been added.

### Examples

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

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

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

---

## Nearby

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