MisspelledWords Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets a collection of all misspelled words in the text part. The property value is an object of the type MisspelledWordCollection.
Syntax
MisspelledWordCollection MisspelledWords { get; }ReadOnly Property MisspelledWords As MisspelledWordCollectionExamples
The following example applies bold formatting through the iformatted text's selection by using IFormattedText.MisspelledWords.
Selection formattedSelection = iFormattedText.Selection;
formattedSelection.Bold = true;
iFormattedText.Selection = formattedSelection;
foreach (MisspelledWord misspelledWord in iFormattedText.MisspelledWords)
{
Console.WriteLine(misspelledWord.IsDuplicate);
}Dim formattedSelection As Selection = iFormattedText.Selection
formattedSelection.Bold = True
iFormattedText.Selection = formattedSelection
For Each misspelledWord As MisspelledWord In iFormattedText.MisspelledWords
Console.WriteLine(misspelledWord.IsDuplicate)
NextLimitations
Read only.