AcceptButton 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 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; }Public Property AcceptButton As DialogButtonExamples
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.");
}spellCheckDialog.AcceptButton = New TXTextControl.WPF.Proofing.DialogButton(TXTextControl.Proofing.TXSpell.ButtonType.AddToDictionary)
If spellCheckDialog.AcceptButton IsNot Nothing Then
Console.WriteLine("Spell Check Dialog: Accept Button is available.")
End If