# SynonymListCollection.Remove Method

> Removes objects of type SynonymList from 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.Remove Method
- **451 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/synonymlistcollection/remove-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/synonymlistcollection/remove-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/synonymlistcollection/remove-method/llms-full.txt

---

### Description

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

### Syntax

```csharp
public void Remove(SynonymList synonymList);
```

```vbnet
Public Sub Remove(synonymList As SynonymList)
```

### Parameters

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

### Examples

The following example removes the first synonym list when the collection is not empty.

```csharp
if (synonymListCollection.Count > 0)
{
    TXTextControl.Proofing.SynonymList synonymList = synonymListCollection[1];
    synonymListCollection.Remove(synonymList);
}
```

```vbnet
If synonymListCollection.Count > 0 Then
    Dim synonymList As TXTextControl.Proofing.SynonymList = synonymListCollection.Item(1)
    synonymListCollection.Remove(synonymList)
End If
```

---

## Nearby

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