# TextFrame.DocumentLinks Property

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

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 23.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 > TextFrame.DocumentLinks Property
- **476 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textframe/documentlinks-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textframe/documentlinks-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textframe/documentlinks-property/llms-full.txt

---

### Description

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

### Syntax

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

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

### Examples

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

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

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

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

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

### Limitations

Read only.

---

## Nearby

- **Previous:** [TextFrame Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textframe/constructor/llms-full.txt)
- **Next:** [TextFrame.DocumentTargets Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textframe/documenttargets-property/llms-full.txt)
