TX Text Control .NET for WPF

Name Property

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

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