TX Text Control .NET for WPF

CannotTrackChangeEventArgs Class

Class|Introduced in 26.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.dll
Install
dotnet add package TXTextControl.TextControl.WPF.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.dll from the setup.
Inherits
  1. CancelEventArgs
  2. CannotTrackChangeEventArgs

Description

The CannotTrackChangeEventArgs class provides data for the CannotTrackChange event. This event 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 shows a MessageBox asking the end-user whether the change of the document should be performed. Using the Handled and the Cancel property the default handling can be changed.

Syntax

public class CannotTrackChangeEventArgs : CancelEventArgs

Examples

The following example uses CannotTrackChangeEventArgs.Handled while handling CannotTrackChange.

textControl.CannotTrackChange += (_, e) =>
{
    e.Handled = true;
};

Members

Properties

PropertyDescription
CancelGets or sets a value indicating whether the change of the document should be performed. If the property value is true, which is the default value, the operation is canceled. If the property value is false, the document is changed.
DefaultMessageGets the default message for the user. If a subscriber does not handle the event, this message is displayed with a message box asking the end-user whether the change of the document should be performed.
HandledA subscriber can set this property to true to indicate that he has handled the event. In this case the default handling is suppressed. The default handling shows a MessageBox asking the end-user whether the change of the document should be performed. The default value of this property is false.