TX Text Control .NET for WPF

TrackedChangeCreated Event

Event|Introduced in 26.0
Namespace
TXTextControl.WPF
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.WPF.dll from the private NuGet feed or Text Control Offline Packages

Description

Occurs when a tracked change has been created. A tracked change is created when a document is changed and the TextControl.IsTrackChangesEnabled property has been set to true. The event handler receives an argument of type TrackedChangeEventArgs containing data related to this event.

Syntax

public event TrackedChangeEventHandler TrackedChangeCreated;

Examples

The following example records useful audit information whenever a tracked change is created.

textControl.TrackedChangeCreated += (_, e) =>
{
    TrackedChange change = e.TrackedChange;
    Console.WriteLine($"{change.UserName}: {change.ChangeKind} at {change.Start}");
};