MisspelledWords Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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; }Public Property MisspelledWords As MisspelledWord()Examples
The following example uses SpellCheckTextEventArgs.MisspelledWords while handling SpellCheckText.
textControl.SpellCheckText += (_, e) =>
{
Console.WriteLine($"Misspelled Words: {e.MisspelledWords}");
};AddHandler textControl.SpellCheckText,
Sub(sender, e)
Console.WriteLine($"Misspelled Words: {e.MisspelledWords}")
End Sub