# IFormattedText.DocumentLinks Property

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

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 23.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.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 Server > Reference > TXTextControl > IFormattedText.DocumentLinks Property
- **466 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/iformattedtext/documentlinks-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/iformattedtext/documentlinks-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/iformattedtext/documentlinks-property/llms-full.txt

---

### Description

Gets a collection of all links in the text part which 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-server/reference/txtextcontrol/documentlinkcollection/llms-full.txt).

### Syntax

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

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

### Examples

The following example applies bold formatting through the iformatted text's selection by using `IFormattedText.DocumentLinks`.

```csharp
Selection formattedSelection = iFormattedText.Selection;
formattedSelection.Bold = true;
iFormattedText.Selection = formattedSelection;

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

```vbnet
Dim formattedSelection As Selection = iFormattedText.Selection
formattedSelection.Bold = True
iFormattedText.Selection = formattedSelection

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

### Limitations

Read only.

---

## Nearby

- **Previous:** [IFormattedText.Comments Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/iformattedtext/comments-property/llms-full.txt)
- **Next:** [IFormattedText.DocumentTargets Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/iformattedtext/documenttargets-property/llms-full.txt)
