CannotTrackChangeEventArgs Class
- Namespace
TXTextControl
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WPF. SDK
- Assembly
TXTextControl.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WPF. SDK TXTextControl.from the setup.dll
- Inherits
- Cancel
Event Args - Cannot
Track Change Event Args
- Cancel
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 : CancelEventArgsPublic Class CannotTrackChangeEventArgs
Inherits CancelEventArgsExamples
The following example uses CannotTrackChangeEventArgs.Handled while handling CannotTrackChange.
textControl.CannotTrackChange += (_, e) =>
{
e.Handled = true;
};AddHandler textControl.CannotTrackChange,
Sub(sender, e)
e.Handled = True
End SubMembers
Properties
| Property | Description |
|---|---|
| Cancel | Gets 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. |
| DefaultMessage | Gets 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. |
| Handled | A 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. |