TX Text Control .NET Server

MainTextActivated Event

Event|Introduced in 26.0
Namespace
TXTextControl.ServerVisualisation
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Server.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.Server.dll

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.

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