TX Text Control .NET Server

HypertextLink Constructor

Constructor
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

Initializes a new instance of the HypertextLink class.

Syntax

public HypertextLink(string text, string target);

Parameters

ParameterDescription
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.

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

Further Reading

  • MailMerge: Merge Hyperlinks into Merge Fields –