
An instance of the MisspelledWordCollection class contains all misspelled words in the main part of a Text Control document. An instance of this class can be obtained with the TextControl.MisspelledWords, WPF.TextControl.MisspelledWords, HeaderFooter.MisspelledWords or TextFrame.MisspelledWords property. The MisspelledWordCollection class implements the IEnumerable and the ICollection interfaces. Misspelled words are represented through objects of the type MisspelledWord.
Introduced: 16.0.
[C#]
public class MisspelledWordCollection : ICollection, IEnumerable
[Visual Basic]
Public Class MisspelledWordCollection
Implements ICollection
Implements IEnumerable
| Property | Description | |
| Count | Gets the number of elements contained in the collection. |
| Method | Description | |
| CopyTo | Copies the elements of the collection to an array, starting at a particular index. | |
| GetEnumerator | Returns an enumerator that can be used to iterate through the collection. | |
| GetItem | Gets a particular item from the collection. | |
| Item | Gets a misspelled word from the collection. | |
| Remove | Removes the specified misspelled word from a Text Control document. |