TX Text Control .NET for Windows Forms

TargetName Property

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

Description

Gets or sets the target name.

Syntax

public string TargetName { get; set; }

Examples

The following example creates a named destination for an internal document link by using DocumentTarget.TargetName.

DocumentTarget documentTarget = new("CustomerDetails");
textControl.DocumentTargets.Add(documentTarget);

documentTarget.TargetName = "CustomerName";
if (!string.IsNullOrWhiteSpace(documentTarget.TargetName))
{
    Console.WriteLine($"Target Name: {documentTarget.TargetName}");
}