# HypertextLink Constructor

> Initializes a new instance of the HypertextLink class.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Constructor
- **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
- **Path:** TX Text Control .NET Server > Reference > TXTextControl > HypertextLink Constructor
- **417 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/hypertextlink/constructor/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/hypertextlink/constructor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/hypertextlink/constructor/llms-full.txt

---

### Description

Initializes a new instance of the HypertextLink class.

### Syntax

```csharp
public HypertextLink(string text, string target);
```

```vbnet
Public Sub New(text As String, target As String)
```

### Parameters

| Parameter | Description |
|---|---|
| text | Specifies the visible text of the hypertext link. |
| target | Specifies a string specifying to where the hypertext link points. |

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

---

## Nearby

- **Previous:** [HypertextLink Class](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/hypertextlink/llms-full.txt)
- **Next:** [HypertextLink.DescriptiveText Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/hypertextlink/descriptivetext-property/llms-full.txt)
