TX Spell .NET for WPF

OptionsDialogOpening Event

Event|Introduced in 3.0
Namespace
TXTextControl.WPF.Proofing
Package
TXTextControl.TXSpell.WPF.SDK as TXSpell.WPF.dll from the private NuGet feed or Text Control Offline Packages

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;

Examples

The following example records useful context when options dialog opening occurs.

tXSpellChecker.OptionsDialogOpening += (sender, e) =>
{
    Console.WriteLine($"Cancel: {e.Cancel}");
};