# SynonymListCollection.GetItem Method

> Gets a particular SynonymList from the collection by using the specified name.

- **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.GetItem Method
- **483 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/synonymlistcollection/getitem-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/synonymlistcollection/getitem-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/synonymlistcollection/getitem-method/llms-full.txt

---

### Description

Gets a particular [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) by using the specified [name](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/synonymlist/name-property/llms-full.txt).

### Syntax

```csharp
public SynonymList GetItem(string name);
```

```vbnet
Public Function GetItem(name As String) As SynonymList
```

### Parameters

| Parameter | Description |
|---|---|
| name | Specifies a [synonym list name](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/synonymlist/name-property/llms-full.txt). |

### Return Value

The return value is null, if a [SynonymList](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/synonymlist/llms-full.txt) with the specified [name](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/synonymlist/name-property/llms-full.txt) could not be found. Otherwise, it is an object of type [SynonymList](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/synonymlist/llms-full.txt).

### Examples

The following example retrieves item from the synonym list collection.

```csharp
var result = synonymListCollection.GetItem("CustomerName");
Console.WriteLine($"Get Item result: {result}");
```

```vbnet
Dim result = synonymListCollection.GetItem("CustomerName")
Console.WriteLine($"Get Item result: {result}")
```

---

## Nearby

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