Cancel Property
- Namespace
TXTextControl.Proofing
- Package
TXTextControl.asTXSpell. WinForms. SDK TXSpell.from the private NuGet feed or Text Control Offline Packagesdll
- Also in
TXTextControl.asTXSpell. Core. SDK TXSpell.dll
Description
Get or sets a value indicating whether the changing operation for the current incorrect word should be canceled.
Syntax
public bool Cancel { get; set; }Public Property Cancel As BooleanExamples
The following example uses IncorrectWordChangingEventArgs.Cancel to configure cancel as part of the incorrect word changing event args workflow. The configured value is checked before the workflow continues.
incorrectWordChangingEventArgs.Cancel = true;
if (incorrectWordChangingEventArgs.Cancel)
{
Console.WriteLine("Incorrect Word Changing Event Args: Cancel is enabled.");
}incorrectWordChangingEventArgs.Cancel = True
If incorrectWordChangingEventArgs.Cancel Then
Console.WriteLine("Incorrect Word Changing Event Args: Cancel is enabled.")
End If