# TextControl.HypertextLinkClicked Event

> Occurs when a text field has been clicked on that represents the source of a hypertext link. The event handler receives an argument of type HypertextLinkEventArgs containing data related to this event.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Event
- **Introduced:** 16.0
- **Namespace:** `TXTextControl.WPF`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.WPF.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF > TextControl.HypertextLinkClicked Event
- **347 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/hypertextlinkclicked-event/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/hypertextlinkclicked-event/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/hypertextlinkclicked-event/llms-full.txt

---

### Description

Occurs when a text field has been clicked on that represents the source of a hypertext link. The event handler receives an argument of type [HypertextLinkEventArgs](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/hypertextlinkeventargs/llms-full.txt) containing data related to this event.

### Syntax

```csharp
public event HypertextLinkEventHandler HypertextLinkClicked;
```

```vbnet
Public Event HypertextLinkClicked As HypertextLinkEventHandler
```

### Examples

The following example records useful context when hypertext link clicked occurs.

```csharp
textControl.HypertextLinkClicked += (sender, e) =>
{
    Console.WriteLine($"Hypertext Link Clicked at {DateTime.Now:u}");
};
```

```vbnet
AddHandler textControl.HypertextLinkClicked,
    Sub(sender, e)
        Console.WriteLine($"Hypertext Link Clicked at {DateTime.Now:u}")
    End Sub
```

### See Also

Text Fields and Hypertext Links - Hypertext Links.

---

## Nearby

- **Previous:** [TextControl.HShrunk Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/hshrunk-event/llms-full.txt)
- **Next:** [TextControl.HypertextLinks Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/hypertextlinks-property/llms-full.txt)
