# HyphenationListCollection.GetItem Method

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

- **Product:** TX Spell .NET for WPF
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 4.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 > HyphenationListCollection.GetItem Method
- **496 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/hyphenationlistcollection/getitem-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/hyphenationlistcollection/getitem-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/hyphenationlistcollection/getitem-method/llms-full.txt

---

### Description

Gets a particular [HyphenationList](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/hyphenationlist/llms-full.txt) from the [collection](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/hyphenationlistcollection/llms-full.txt) by using the specified [name](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/hyphenationlist/name-property/llms-full.txt).

### Syntax

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

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

### Parameters

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

### Return Value

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

### Examples

The following example retrieves item from the hyphenation list collection.

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

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

---

## Nearby

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