TX Text Control .NET for Windows Forms

TableOfContentsEntered Event

Event|Introduced in 29.0
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 the current input position has been moved to a position that belongs to a table of contents. The event handler receives an argument of type TableOfContentsEventArgs containing data related to this event.

Syntax

public event TableOfContentsEventHandler TableOfContentsEntered;

Examples

The following example records useful context when table of contents entered occurs.

textControl.TableOfContentsEntered += (sender, e) =>
{
    Console.WriteLine($"Table Of Contents Entered at {DateTime.Now:u}");
};