Name Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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; }Public Property Name As StringExamples
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}");
}Dim documentTarget As New DocumentTarget("CustomerDetails")
textControl.DocumentTargets.Add(documentTarget)
documentTarget.Name = "DocumentTarget1"
If Not String.IsNullOrWhiteSpace(documentTarget.Name) Then
Console.WriteLine($"Name: {documentTarget.Name}")
End If