Target Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets a string that specifies the target to where the hypertext link points.
Syntax
public string Target { get; set; }Public Property Target As StringExamples
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}");
}Dim hypertextLink As New HypertextLink("TX Text Control documentation", "https://docs.textcontrol.com/")
textControl.HypertextLinks.Add(hypertextLink)
hypertextLink.Target = "Quarterly report"
If Not String.IsNullOrWhiteSpace(hypertextLink.Target) Then
Console.WriteLine($"Target: {hypertextLink.Target}")
End If