TX Text Control .NET Server

Target Property

Property
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

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}");
}