GetCount Method
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Returns the number of misspelled words with a special meaning from the collection.
Syntax
public int GetCount(MisspelledWordKind kind);Public Function GetCount(kind As MisspelledWordKind) As IntegerParameters
| Parameter | Description |
|---|---|
| kind | Specifies the word's kind. It must be one or more values of the MisspelledWordKind enumeration. |
Return Value
The return value is an IEnumerator that represents the collection.
Examples
The following example works with misspelled words in the current document by using MisspelledWordCollection.get_Count.
MisspelledWordCollection misspelledWordCollection = textControl.MisspelledWords;
var result = misspelledWordCollection.GetCount(MisspelledWordKind.Normal);
Console.WriteLine($"Get Count result: {result}");Dim misspelledWordCollection As MisspelledWordCollection = textControl.MisspelledWords
Dim result = misspelledWordCollection.GetCount(MisspelledWordKind.Normal)
Console.WriteLine($"Get Count result: {result}")