# MisspelledWordCollection.GetCount Method

> Returns the number of misspelled words with a special meaning from the collection.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 18.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > MisspelledWordCollection.GetCount Method
- **470 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/misspelledwordcollection/getcount-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/misspelledwordcollection/getcount-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/misspelledwordcollection/getcount-method/llms-full.txt

---

### Description

Returns the number of misspelled words with a special meaning from the collection.

### Syntax

```csharp
public int GetCount(MisspelledWordKind kind);
```

```vbnet
Public Function GetCount(kind As MisspelledWordKind) As Integer
```

### Parameters

| Parameter | Description |
|---|---|
| kind | Specifies the word's kind. It must be one or more values of the [MisspelledWordKind](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/misspelledwordkind/enumeration/llms-full.txt) 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`.

```csharp
MisspelledWordCollection misspelledWordCollection = textControl.MisspelledWords;

var result = misspelledWordCollection.GetCount(MisspelledWordKind.Normal);
Console.WriteLine($"Get Count result: {result}");
```

```vbnet
Dim misspelledWordCollection As MisspelledWordCollection = textControl.MisspelledWords

Dim result = misspelledWordCollection.GetCount(MisspelledWordKind.Normal)
Console.WriteLine($"Get Count result: {result}")
```

---

## Nearby

- **Previous:** [MisspelledWordCollection.Count Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/misspelledwordcollection/count-property/llms-full.txt)
- **Next:** [MisspelledWordCollection.GetEnumerator Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/misspelledwordcollection/getenumerator-method/llms-full.txt)
