TX Text Control .NET for WPF

IsIgnored Property

Property|Introduced in 18.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets a value which marks the misspelled word as ignored. An ignored misspelled word remains in the collection of misspelled words, but it is not underlined in the text with a red zigzag line.

Syntax

public bool IsIgnored { get; set; }

Examples

The following example locates the first spelling issue in a short document by using MisspelledWord.IsIgnored.

textControl.Text = "The quaterly report is ready.";
MisspelledWord misspelledWord = textControl.MisspelledWords.GetItem();
if (misspelledWord == null)
{
    return;
}

misspelledWord.IsIgnored = true;
misspelledWord.Select();