DocumentLinkClicked Event
- Namespace
TXTextControl.ServerVisualisation
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. Core. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.Server. dll
Description
Occurs when a text field has been clicked on that represents a link to a target in the document. The event handler receives an argument of type DocumentLinkEventArgs containing data related to this event.
Syntax
public event DocumentLinkEventHandler DocumentLinkClicked;Public Event DocumentLinkClicked As DocumentLinkEventHandlerExamples
The following example records useful context when document link clicked occurs.
textViewGenerator.DocumentLinkClicked += (sender, e) =>
{
Console.WriteLine($"Document Link Clicked at {DateTime.Now:u}");
};AddHandler textViewGenerator.DocumentLinkClicked,
Sub(sender, e)
Console.WriteLine($"Document Link Clicked at {DateTime.Now:u}")
End SubSee Also
Text Fields and Hypertext Links - Hypertext Links.