# DocumentLinkEventArgs.DocumentLink Property

> Gets an object that represents the clicked document link. It is of the type DocumentLink.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.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 WPF > Reference > TXTextControl > DocumentLinkEventArgs.DocumentLink Property
- **334 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documentlinkeventargs/documentlink-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documentlinkeventargs/documentlink-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documentlinkeventargs/documentlink-property/llms-full.txt

---

### Description

Gets an object that represents the clicked document link. It is of the type [DocumentLink](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documentlink/llms-full.txt).

### Syntax

```csharp
public DocumentLink DocumentLink { get; }
```

```vbnet
Public ReadOnly Property DocumentLink As DocumentLink
```

### Examples

The following example uses `DocumentLinkEventArgs.DocumentLink` while handling `DocumentLinkClicked`.

```csharp
textControl.DocumentLinkClicked += (_, e) =>
{
    e.DocumentLink?.ScrollTo();
};
```

```vbnet
AddHandler textControl.DocumentLinkClicked,
    Sub(sender, e)
        If e.DocumentLink IsNot Nothing Then e.DocumentLink.ScrollTo()
    End Sub
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [DocumentLinkEventArgs Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documentlinkeventargs/llms-full.txt)
- **Next:** [DocumentPermissions Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documentpermissions/llms-full.txt)
