# MisspelledWordCollection.Count Property

> Gets the number of elements contained in the collection.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 16.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.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 Server > Reference > TXTextControl > MisspelledWordCollection.Count Property
- **358 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/misspelledwordcollection/count-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/misspelledwordcollection/count-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/misspelledwordcollection/count-property/llms-full.txt

---

### Description

Gets the number of elements contained in the collection.

### Syntax

```csharp
public int Count { get; }
```

```vbnet
Public ReadOnly Property Count As Integer
```

### Examples

The following example works with misspelled words in the current document by using `MisspelledWordCollection.Count`.

```csharp
MisspelledWordCollection misspelledWordCollection = textControl.MisspelledWords;

Console.WriteLine($"Count: {misspelledWordCollection.Count}");
Console.WriteLine("Misspelled Word Collection is ready for use.");
```

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

Console.WriteLine($"Count: {misspelledWordCollection.Count}")
Console.WriteLine("Misspelled Word Collection is ready for use.")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [MisspelledWordCollection.CopyTo Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/misspelledwordcollection/copyto-method/llms-full.txt)
- **Next:** [MisspelledWordCollection.GetCount Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/misspelledwordcollection/getcount-method/llms-full.txt)
