TX Text Control .NET Server

CannotTrackChange Event

Event|Introduced in 26.0
Namespace
TXTextControl.ServerVisualisation
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

Determines how to handle a change of the document that cannot be added to the list of tracked changes. Complex table layout changes, such as deleting a table column or merging table cells cannot be tracked. The default handling does not perform the change. The event handler receives an argument of type CannotTrackChangeEventArgs containing data related to this event. Using the CannotTrackChangeEventArgs.Cancel property the default handling can be changed.

Syntax

public event CannotTrackChangeEventHandler CannotTrackChange;

Examples

The following example records useful context when cannot track change occurs.

textViewGenerator.CannotTrackChange += (sender, e) =>
{
    Console.WriteLine($"Handled: {e.Handled}");
};