TX Text Control .NET for Windows Forms

MainTextActivated Event

Event|Introduced in 26.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 main text of the document gets the current text input position from another part of the document, such as a header, a footer or a textframe. The event handler receives an argument of type EventArgs containing data related to this event.

Syntax

public event EventHandler MainTextActivated;

Examples

The following example records useful context when main text activated occurs.

textControl.MainTextActivated += (sender, e) =>
{
    Console.WriteLine($"Main Text Activated at {DateTime.Now:u}");
};