ContentsReset Event
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Occurs when all text contents have been deleted and all attributes have been reset to the state after initialization. The event handler receives an argument of type EventArgs containing data related to this event.
Syntax
public event EventHandler ContentsReset;Public Event ContentsReset As EventHandlerExamples
The following example records useful context when contents reset occurs.
textControl.ContentsReset += (sender, e) =>
{
Console.WriteLine($"Contents Reset at {DateTime.Now:u}");
};AddHandler textControl.ContentsReset,
Sub(sender, e)
Console.WriteLine($"Contents Reset at {DateTime.Now:u}")
End Sub