TX Text Control .NET for Windows Forms

SubTextPartEntered Event

Event|Introduced in 23.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 subtextpart. The event handler receives an argument of type SubTextPartEventArgs containing data related to this event.

Syntax

public event SubTextPartEventHandler SubTextPartEntered;

Examples

The following example records useful context when sub text part entered occurs.

textControl.SubTextPartEntered += (sender, e) =>
{
    Console.WriteLine($"Sub Text Part Entered at {DateTime.Now:u}");
};