TX Text Control .NET for WPF

Target Property

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

Description

Gets or sets a string that specifies the target to where the hypertext link points.

Syntax

public string Target { get; set; }

Examples

The following example adds and configures a link to the product documentation by using HypertextLink.Target.

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

hypertextLink.Target = "Quarterly report";
if (!string.IsNullOrWhiteSpace(hypertextLink.Target))
{
    Console.WriteLine($"Target: {hypertextLink.Target}");
}