TX Spell .NET for Windows Forms

Cancel Property

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

Description

Gets or sets a value indicating whether the event is canceled or not.

Syntax

public bool Cancel { get; set; }

Examples

The following example uses SpellCheckDialogClosingEventArgs.Cancel to configure cancel as part of the spell check dialog closing event args workflow. The configured value is checked before the workflow continues.

spellCheckDialogClosingEventArgs.Cancel = true;
if (spellCheckDialogClosingEventArgs.Cancel)
{
    Console.WriteLine("Spell Check Dialog Closing Event Args: Cancel is enabled.");
}