TX Text Control .NET for WPF

DocumentLinkEventArgs Class

Class
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.dll
Install
dotnet add package TXTextControl.TextControl.WPF.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.dll from the setup.
Inherits
  1. EventArgs
  2. DocumentLinkEventArgs

Description

The DocumentLinkEventArgs class provides data for the TextControl.DocumentLinkClicked event.

Syntax

public class DocumentLinkEventArgs : EventArgs

Examples

The following example uses DocumentLinkEventArgs.DocumentLink while handling DocumentLinkClicked.

textControl.DocumentLinkClicked += (_, e) =>
{
    e.DocumentLink?.ScrollTo();
};

Members

Properties

PropertyDescription
DocumentLinkGets an object that represents the clicked document link. It is of the type DocumentLink.