Cancel Property
- Namespace
TXTextControl.WPF. Proofing
- Package
TXTextControl.asTXSpell. WPF. SDK TXSpell.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Gets or sets a value indicating whether the event is canceled or not.
Syntax
public bool Cancel { get; set; }Public Property Cancel As BooleanExamples
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.");
}spellCheckDialogClosingEventArgs.Cancel = True
If spellCheckDialogClosingEventArgs.Cancel Then
Console.WriteLine("Spell Check Dialog Closing Event Args: Cancel is enabled.")
End If