DocumentLink Constructor
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
Description
Initializes a new instance of the DocumentLink class.
Syntax
public DocumentLink(string text, DocumentTarget documentTarget);Public Sub New(text As String, documentTarget As DocumentTarget)Parameters
| Parameter | Description |
|---|---|
| text | Specifies the visible text of the link. |
| documentTarget | Specifies an object of the type DocumentTarget specifying to where the link points. |
Examples
The following example creates an internal link to the customer-details destination.
DocumentTarget target = new("CustomerDetails");
textControl.DocumentTargets.Add(target);
DocumentLink documentLink = new("View customer details", target);
textControl.DocumentLinks.Add(documentLink);Dim target As New DocumentTarget("CustomerDetails")
textControl.DocumentTargets.Add(target)
Dim documentLink As New DocumentLink("View customer details", target)
textControl.DocumentLinks.Add(documentLink)