TX Text Control .NET Server

ContentsReset Event

Event|Introduced in 25.0
Namespace
TXTextControl
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 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;

Examples

The following example records useful context when contents reset occurs.

textControl.ContentsReset += (sender, e) =>
{
    Console.WriteLine($"Contents Reset at {DateTime.Now:u}");
};