TX Text Control .NET for Windows Forms

TextFieldClicked Event

Event
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 a text field has been clicked on. The event handler receives an argument of type TextFieldEventArgs containing data related to this event.

Syntax

public event TextFieldEventHandler TextFieldClicked;

Examples

The following example records useful context when text field clicked occurs.

textControl.TextFieldClicked += (sender, e) =>
{
    Console.WriteLine($"Text Field Clicked at {DateTime.Now:u}");
};

See Also

Text Fields and Hypertext Links - Editing Marked Text Fields.