TX Text Control .NET Server

IsDuplicate Property

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

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();