Cancel Property
- Namespace
TXTextControl.Proofing
- Package
TXTextControl.asTXSpell. WinForms. SDK TXSpell.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. 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 OptionsDialogOpeningEventArgs.Cancel to configure cancel as part of the options dialog opening event args workflow. The configured value is checked before the workflow continues.
optionsDialogOpeningEventArgs.Cancel = true;
if (optionsDialogOpeningEventArgs.Cancel)
{
Console.WriteLine("Options Dialog Opening Event Args: Cancel is enabled.");
}optionsDialogOpeningEventArgs.Cancel = True
If optionsDialogOpeningEventArgs.Cancel Then
Console.WriteLine("Options Dialog Opening Event Args: Cancel is enabled.")
End If