DocumentTarget Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets an object of the type DocumentTarget specifying to where the link points. If such an object does not exist, the property returns null.
Syntax
public DocumentTarget DocumentTarget { get; set; }Public Property DocumentTarget As DocumentTargetExamples
The following example creates an internal link to the customer-details destination by using DocumentLink.DocumentTarget.
DocumentTarget target = new("CustomerDetails");
textControl.DocumentTargets.Add(target);
DocumentLink documentLink = new("View customer details", target);
textControl.DocumentLinks.Add(documentLink);
documentLink.DocumentTarget = new DocumentTarget("CustomerName");
if (documentLink.DocumentTarget != null)
{
Console.WriteLine("Document Link: Document Target is available.");
}Dim target As New DocumentTarget("CustomerDetails")
textControl.DocumentTargets.Add(target)
Dim documentLink As New DocumentLink("View customer details", target)
textControl.DocumentLinks.Add(documentLink)
documentLink.DocumentTarget = New DocumentTarget("CustomerName")
If documentLink.DocumentTarget IsNot Nothing Then
Console.WriteLine("Document Link: Document Target is available.")
End If