TX Spell .NET for Windows Forms

Cancel Property

Property|Introduced in 6.0
Namespace
TXTextControl.Proofing
Package
TXTextControl.TXSpell.WinForms.SDK as TXSpell.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TXSpell.Core.SDK as TXSpell.dll

Description

Get or sets a value indicating whether the changing operation for the current misspelled word should be canceled.

Syntax

public bool Cancel { get; set; }

Examples

The following example uses MisspelledWordChangingEventArgs.Cancel to configure cancel as part of the misspelled word changing event args workflow. The configured value is checked before the workflow continues.

misspelledWordChangingEventArgs.Cancel = true;
if (misspelledWordChangingEventArgs.Cancel)
{
    Console.WriteLine("Misspelled Word Changing Event Args: Cancel is enabled.");
}