# HypertextLink Class

> The HypertextLink class represents a hypertext link in a Text Control document that points to a target outside of the document. For more information see the technical article Text Fields and Hypertext Links.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Class
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Inherits:** `TXTextControl.TextField`
- **Path:** TX Text Control .NET Server > Reference > TXTextControl > HypertextLink Class
- **2028 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/hypertextlink/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/hypertextlink/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/hypertextlink/llms-full.txt

---

### Description

The HypertextLink class represents a hypertext link in a Text Control document that points to a target outside of the document. For more information see the technical article Text Fields and Hypertext Links.

### Syntax

```csharp
public class HypertextLink : TextField
```

```vbnet
Public Class HypertextLink
    Inherits TextField
```

### Examples

The following example adds and configures a link to the product documentation.

```csharp
HypertextLink hypertextLink = new("TX Text Control documentation", "https://docs.textcontrol.com/");
textControl.HypertextLinks.Add(hypertextLink);
```

```vbnet
Dim hypertextLink As New HypertextLink("TX Text Control documentation", "https://docs.textcontrol.com/")
textControl.HypertextLinks.Add(hypertextLink)
```

---

## In This Section

- [HypertextLink Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/hypertextlink/constructor/llms-full.txt): Initializes a new instance of the HypertextLink class.
- [HypertextLink.DescriptiveText Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/hypertextlink/descriptivetext-property/llms-full.txt): Gets or sets a descriptive text for a hypertext link. An empty string indicates that the hypertext link has no such text. An empty string can also be used to delete a previously set text.
- [HypertextLink.Target Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/hypertextlink/target-property/llms-full.txt): Gets or sets a string that specifies the target to where the hypertext link points.

---

## Nearby

- **Previous:** [HorizontalAlignment Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/horizontalalignment/enumeration/llms-full.txt)
- **Next:** [HypertextLink Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/hypertextlink/constructor/llms-full.txt)
