MainTextActivated Event
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. 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;Public Event MainTextActivated As EventHandlerExamples
The following example records useful context when main text activated occurs.
textControl.MainTextActivated += (sender, e) =>
{
Console.WriteLine($"Main Text Activated at {DateTime.Now:u}");
};AddHandler textControl.MainTextActivated,
Sub(sender, e)
Console.WriteLine($"Main Text Activated at {DateTime.Now:u}")
End Sub