TargetName Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets the target name.
Syntax
public string TargetName { get; set; }Public Property TargetName As StringExamples
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}");
}Dim documentTarget As New DocumentTarget("CustomerDetails")
textControl.DocumentTargets.Add(documentTarget)
documentTarget.TargetName = "CustomerName"
If Not String.IsNullOrWhiteSpace(documentTarget.TargetName) Then
Console.WriteLine($"Target Name: {documentTarget.TargetName}")
End If