OptionsDialogOpening Event
- Namespace
TXTextControl.WPF. Proofing
- Package
TXTextControl.asTXSpell. WPF. SDK TXSpell.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Occurs when the built-in options dialog is invoked by the TXSpellChecker.OptionsDialog method or clicking the Options... button of the built-in SpellCheckDialog. The OptionsDialogOpeningHandler receives an argument of type OptionsDialogOpeningEventArgs containing data related to this event.
Syntax
public event OptionsDialogOpeningHandler OptionsDialogOpening;Public Event OptionsDialogOpening As OptionsDialogOpeningHandlerExamples
The following example records useful context when options dialog opening occurs.
tXSpellChecker.OptionsDialogOpening += (sender, e) =>
{
Console.WriteLine($"Cancel: {e.Cancel}");
};AddHandler tXSpellChecker.OptionsDialogOpening,
Sub(sender, e)
Console.WriteLine($"Cancel: {e.Cancel}")
End Sub