CannotTrackChange Event
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. 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 shows a MessageBox asking the end-user whether the change of the document should be performed. The event handler receives an argument of type CannotTrackChangeEventArgs containing data related to this event. Using the CannotTrackChangeEventArgs.Handled and the CannotTrackChangeEventArgs.Cancel property the default handling can be changed.
Syntax
public event CannotTrackChangeEventHandler CannotTrackChange;Public Event CannotTrackChange As CannotTrackChangeEventHandlerExamples
The following example records useful context when cannot track change occurs.
textControl.CannotTrackChange += (sender, e) =>
{
Console.WriteLine($"Handled: {e.Handled}");
};AddHandler textControl.CannotTrackChange,
Sub(sender, e)
Console.WriteLine($"Handled: {e.Handled}")
End Sub