DocumentLinkEventArgs Class
- Namespace
TXTextControl
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WPF. SDK
- Assembly
TXTextControl.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WPF. SDK TXTextControl.from the setup.dll
- Inherits
- Event
Args - Document
Link Event Args
- Event
Description
The DocumentLinkEventArgs class provides data for the TextControl.DocumentLinkClicked event.
Syntax
public class DocumentLinkEventArgs : EventArgsPublic Class DocumentLinkEventArgs
Inherits EventArgsExamples
The following example uses DocumentLinkEventArgs.DocumentLink while handling DocumentLinkClicked.
textControl.DocumentLinkClicked += (_, e) =>
{
e.DocumentLink?.ScrollTo();
};AddHandler textControl.DocumentLinkClicked,
Sub(sender, e)
If e.DocumentLink IsNot Nothing Then e.DocumentLink.ScrollTo()
End SubMembers
Properties
| Property | Description |
|---|---|
| DocumentLink | Gets an object that represents the clicked document link. It is of the type DocumentLink. |