TX Text Control .NET for Windows Forms

DocumentLinkClicked Event

Event
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

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;

Examples

The following example records useful context when document link clicked occurs.

textControl.DocumentLinkClicked += (sender, e) =>
{
    Console.WriteLine($"Document Link Clicked at {DateTime.Now:u}");
};

See Also

Text Fields and Hypertext Links - Hypertext Links.