# DocumentLinkEventArgs Class

> The DocumentLinkEventArgs class provides data for the TextControl.DocumentLinkClicked event.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Class
- **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
- **Inherits:** `System.EventArgs`
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl > DocumentLinkEventArgs Class
- **421 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documentlinkeventargs/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documentlinkeventargs/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documentlinkeventargs/llms-full.txt

---

### Description

The DocumentLinkEventArgs class provides data for the [TextControl.DocumentLinkClicked](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/documentlinkclicked-event/llms-full.txt) event.

### Syntax

```csharp
public class DocumentLinkEventArgs : EventArgs
```

```vbnet
Public Class DocumentLinkEventArgs
    Inherits EventArgs
```

### 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
```

---

## In This Section

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

---

## Nearby

- **Previous:** [DocumentLinkCollection.Remove Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documentlinkcollection/remove-method/llms-full.txt)
- **Next:** [DocumentLinkEventArgs.DocumentLink Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documentlinkeventargs/documentlink-property/llms-full.txt)
