TX Spell .NET for WPF

IsDeleteButton 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 a value specifying the DialogButton text. The behavior changes to a Delete button, if the incorrect word (TXTextControl.MisspelledWord) is a duplicated word (TXTextControl.MisspelledWord.IsDuplicate).

Syntax

public bool IsDeleteButton { get; set; }

Examples

The following example uses DialogButton.IsDeleteButton to configure is delete button as part of the dialog button workflow. The configured value is checked before the workflow continues.

dialogButton.IsDeleteButton = true;
if (dialogButton.IsDeleteButton)
{
    Console.WriteLine("Dialog Button: Is Delete Button is enabled.");
}