TX Text Control .NET Server

MisspelledWords Property

Property|Introduced in 16.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 an array of MisspelledWord objects. After checking the text which can be obtained with the SpellCheckTextEventArgs.Text property, this property must be set to inform the TextControl about the starting position and length of all misspelled words the text contains.

Syntax

public MisspelledWord[] MisspelledWords { get; set; }

Examples

The following example uses SpellCheckTextEventArgs.MisspelledWords while handling SpellCheckText.

textControl.SpellCheckText += (_, e) =>
{
    Console.WriteLine($"Misspelled Words: {e.MisspelledWords}");
};