# HypertextLinkEventArgs Class

> The HypertextLinkEventArgs class provides data for the TextControl.HypertextLinkClicked event.

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

---

### Description

The HypertextLinkEventArgs class provides data for the [TextControl.HypertextLinkClicked](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/hypertextlinkclicked-event/llms-full.txt) event.

### Syntax

```csharp
public class HypertextLinkEventArgs : EventArgs
```

```vbnet
Public Class HypertextLinkEventArgs
    Inherits EventArgs
```

### Examples

The following example uses `HypertextLinkEventArgs.HypertextLink` while handling `HypertextLinkClicked`.

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

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

---

## In This Section

- [HypertextLinkEventArgs.HypertextLink Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/hypertextlinkeventargs/hypertextlink-property/llms-full.txt): Gets an object that represents the clicked hypertext link. It is of the type HypertextLink.

---

## Nearby

- **Previous:** [HypertextLinkCollection.Remove Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/hypertextlinkcollection/remove-method/llms-full.txt)
- **Next:** [HypertextLinkEventArgs.HypertextLink Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/hypertextlinkeventargs/hypertextlink-property/llms-full.txt)
