# ServerTextControl.DocumentLinks Property

> Gets a collection of all links that point to targets in the same document. The property value is an object of the type DocumentLinkCollection.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 12.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.Server.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Server.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl > ServerTextControl.DocumentLinks Property
- **353 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/documentlinks-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/documentlinks-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/documentlinks-property/llms-full.txt

---

### Description

Gets a collection of all links that point to targets in the same document. The property value is an object of the type [DocumentLinkCollection](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documentlinkcollection/llms-full.txt).

### Syntax

```csharp
public DocumentLinkCollection DocumentLinks { get; }
```

```vbnet
Public ReadOnly Property DocumentLinks As DocumentLinkCollection
```

### Examples

The following example iterates through the document links collection and processes each document link.

```csharp
foreach (DocumentLink documentLink in textControl.DocumentLinks)
{
    documentLink.DescriptiveText = "Quarterly results";
}
```

```vbnet
For Each documentLink As DocumentLink In textControl.DocumentLinks
    documentLink.DescriptiveText = "Quarterly results"
Next
```

### Limitations

Runtime only.

Read only.

---

## Nearby

- **Previous:** [ServerTextControl.Create Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/create-method/llms-full.txt)
- **Next:** [ServerTextControl.DocumentLoaded Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/documentloaded-event/llms-full.txt)
