TX Text Control .NET for WPF

HypertextLink Constructor

Constructor
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

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 –