# SynonymListCollection Class

> An instance of the SynonymListCollection class contains all objects of type SynonymList that will be used by the first and second overload of the TXSpell.CreateSynonyms method. It is inherited from the abstract class System.Collections.CollectionBase and implements the System.Collections.IEnumerable and System.Collections.IEnumerator interfaces. For a list of properties, methods and events of these classes and interfaces, please see the .NET Framework reference.

- **Product:** TX Spell .NET for WPF
- **Section:** Reference
- **Kind:** Class
- **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
- **Inherits:** `System.Collections.CollectionBase`
- **Implements:** `System.Collections.IEnumerable`
- **Path:** TX Spell .NET for WPF > Reference > TXTextControl.Proofing > SynonymListCollection Class
- **736 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/synonymlistcollection/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/synonymlistcollection/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/synonymlistcollection/llms-full.txt

---

### Description

An instance of the SynonymListCollection class contains all objects of type [SynonymList](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/synonymlist/llms-full.txt) that will be used by the first and second overload of the [TXSpell.CreateSynonyms](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/txspell/createsynonyms-method/llms-full.txt) method. It is inherited from the abstract class `System.Collections.CollectionBase` and implements the `System.Collections.IEnumerable` and `System.Collections.IEnumerator` interfaces. For a list of properties, methods and events of these classes and interfaces, please see the .NET Framework reference.

### Syntax

```csharp
public class SynonymListCollection : CollectionBase, IEnumerable
```

```vbnet
Public Class SynonymListCollection
    Inherits CollectionBase
    Implements IEnumerable
```

### Examples

The following example includes the current value from a Synonym List Collection object in application diagnostics. The created object is then available to the surrounding document workflow.

```csharp
Console.WriteLine($"Current: {synonymListCollection.Current}");
Console.WriteLine("Synonym List Collection is ready for use.");
```

```vbnet
Console.WriteLine($"Current: {synonymListCollection.Current}")
Console.WriteLine("Synonym List Collection is ready for use.")
```

---

## In This Section

- [SynonymListCollection.Add Method](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/synonymlistcollection/add-method/llms-full.txt): Adds objects of type SynonymList to the collection.
- [SynonymListCollection.GetItem Method](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/synonymlistcollection/getitem-method/llms-full.txt): Gets a particular SynonymList from the collection by using the specified name.
- [SynonymListCollection.Item Method](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/synonymlistcollection/item-method/llms-full.txt): Gets an object of type SynonymList from the collection. This property is the indexer for the SynonymListCollection class.
- [SynonymListCollection.Remove Method](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/synonymlistcollection/remove-method/llms-full.txt): Removes objects of type SynonymList from the collection.

---

## Nearby

- **Previous:** [SynonymList.Name Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/synonymlist/name-property/llms-full.txt)
- **Next:** [SynonymListCollection.Add Method](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/synonymlistcollection/add-method/llms-full.txt)
