TX Spell .NET for WPF

IncorrectWord Class

Class
Namespace
TXTextControl.Proofing
Package
TXTextControl.TXSpell.WPF.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXSpell.dll
Install
dotnet add package TXTextControl.TXSpell.WPF.SDK .NET 8 and later. For .NET Framework, reference TXSpell.dll from the setup.
Also in
TXTextControl.TXSpell.Core.SDK as TXSpell.dll
Inherits
  1. SpelledWord
  2. IncorrectWord

Description

The IncorrectWord class represents an incorrect word in a text. It is inherited from the abstract class SpelledWord.

Syntax

public sealed class IncorrectWord : SpelledWord

Examples

The following example creates an Incorrect Word instance for a document-processing operation. The created object is then available to the surrounding document workflow.

TXTextControl.Proofing.IncorrectWord incorrectWord = new();
Console.WriteLine("Incorrect Word is ready for use.");

Members

Constructors

ConstructorDescription
IncorrectWordNot described in the reference. public IncorrectWord();

Properties

PropertyDescription
IndexGets the index of the spelled word to the corresponding collection. The first word has the index 0. (Inherited from SpelledWord.)
IsDuplicateGets a value indicating whether the spelled word is declared as incorrect, because the previous word has the same text.
LanguageGets a value indicating the language the incorrect word was spelled. If no specific language was defined, the property returns null.
LengthGets the length of the spelled word. (Inherited from SpelledWord.)
StartGets the starting position of a spelled word. It is a zero-based index of the word's first character. (Inherited from SpelledWord.)
TextGets the text of the spelled word. (Inherited from SpelledWord.)