TX Spell .NET for WPF

AcceptButton Property

Property|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

Gets or sets the dialog button that is used as the SpellCheckDialog's accept button. The default value is the Ignore Once button.

Syntax

public DialogButton AcceptButton { get; set; }

Examples

The following example uses SpellCheckDialog.AcceptButton to configure accept button as part of the spell check dialog workflow. The configured value is checked before the workflow continues.

spellCheckDialog.AcceptButton = new TXTextControl.WPF.Proofing.DialogButton(TXTextControl.Proofing.TXSpell.ButtonType.AddToDictionary);
if (spellCheckDialog.AcceptButton != null)
{
    Console.WriteLine("Spell Check Dialog: Accept Button is available.");
}