Cancel Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
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.
Syntax
public bool Cancel { get; set; }Public Property Cancel() As BooleanExamples
The following example uses CannotTrackChangeEventArgs.Cancel while handling CannotTrackChange.
textControl.CannotTrackChange += (_, e) =>
{
e.Cancel = true;
};AddHandler textControl.CannotTrackChange,
Sub(sender, e)
e.Cancel = True
End Sub