TX Text Control .NET Server

Name 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

Relates a user-defined name to a target, that can be any kind of text in addition to the target's TargetName.

Syntax

public string Name { get; set; }

Examples

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

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

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