# TXSpell.SynonymLists Property

> Gets a collection of all added synonym lists. The property's value is an object of type SynonymListCollection.

- **Product:** TX Spell .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **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 > TXSpell.SynonymLists Property
- **379 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/txspell/synonymlists-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/txspell/synonymlists-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/txspell/synonymlists-property/llms-full.txt

---

### Description

Gets a collection of all added [synonym lists](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/synonymlist/llms-full.txt). The property's value is an object of type [SynonymListCollection](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/synonymlistcollection/llms-full.txt).

### Syntax

```csharp
public SynonymListCollection SynonymLists { get; }
```

```vbnet
Public ReadOnly Property SynonymLists As SynonymListCollection
```

### Examples

The following example iterates through the synonym lists collection and processes each synonym list.

```csharp
foreach (TXTextControl.Proofing.SynonymList synonymList in tXSpell.SynonymLists)
{
    synonymList.Name = "CustomerName";
}
```

```vbnet
For Each synonymList As TXTextControl.Proofing.SynonymList In tXSpell.SynonymLists
    synonymList.Name = "CustomerName"
Next
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [TXSpell.SynonymLanguage Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/txspell/synonymlanguage-property/llms-full.txt)
- **Next:** [TXSpell.SynonymListsDirectoryPath Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/txspell/synonymlistsdirectorypath-property/llms-full.txt)
