TX Text Control .NET for WPF

IsDuplicate 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 duplicate. A duplicate word is not misspelled, but it has the same text as the word in front of it.

Syntax

public bool IsDuplicate { get; set; }

Examples

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

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

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