DocumentLinkClicked Event
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. 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.
textControl.DocumentLinkClicked += (sender, e) =>
{
Console.WriteLine($"Document Link Clicked at {DateTime.Now:u}");
};AddHandler textControl.DocumentLinkClicked,
Sub(sender, e)
Console.WriteLine($"Document Link Clicked at {DateTime.Now:u}")
End SubSee Also
Text Fields and Hypertext Links - Hypertext Links.