# HypertextLinkCollection.Item Property

> Gets the field with the specified number from the collection. The number must be between 1 and Count. In C# this property is the indexer for the HypertextLinkCollection class.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 28.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > HypertextLinkCollection.Item Property
- **647 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/hypertextlinkcollection/item-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/hypertextlinkcollection/item-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/hypertextlinkcollection/item-property/llms-full.txt

---

### Description

Gets the field with the specified number from the collection. The number must be between 1 and Count. In C# this property is the indexer for the HypertextLinkCollection class.

### Syntax

```csharp
public HypertextLink this[int number] { get; }
```

```vbnet
Default Public ReadOnly Property Item(number As Integer) As HypertextLink
```

### Examples

The following example works with hypertext links in the current document by using `HypertextLinkCollection.Item`.

```csharp
textControl.Text = "Customer: Contoso Ltd.";
textControl.Select(10, 12);
HypertextLinkCollection hypertextLinkCollection = textControl.HypertextLinks;
hypertextLinkCollection.Add(new HypertextLink("Documentation", "https://docs.textcontrol.com/") { ID = 100 });

Console.WriteLine($"Item: {hypertextLinkCollection[10]}");
Console.WriteLine("Hypertext Link Collection is ready for use.");
```

```vbnet
textControl.Text = "Customer: Contoso Ltd."
textControl.Select(10, 12)
Dim hypertextLinkCollection As HypertextLinkCollection = textControl.HypertextLinks
hypertextLinkCollection.Add(New HypertextLink("Documentation", "https://docs.textcontrol.com/") With { .ID = 100 })

Console.WriteLine($"Item: {hypertextLinkCollection.Item(10)}")
Console.WriteLine("Hypertext Link Collection is ready for use.")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [HypertextLinkCollection.GetItem Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/hypertextlinkcollection/getitem-method/llms-full.txt)
- **Next:** [HypertextLinkCollection.Remove Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/hypertextlinkcollection/remove-method/llms-full.txt)
