TX Text Control .NET Server

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