# SpellCheckTextEventArgs.Text Property

> Gets the text to check. After checking the text, the SpellCheckTextEventArgs.MisspelledWords property must be set to inform the TextControl about the starting and ending positions of all misspelled words this text contains.

- **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 > SpellCheckTextEventArgs.Text Property
- **393 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/spellchecktexteventargs/text-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/spellchecktexteventargs/text-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/spellchecktexteventargs/text-property/llms-full.txt

---

### Description

Gets the text to check. After checking the text, the [SpellCheckTextEventArgs.MisspelledWords](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/spellchecktexteventargs/misspelledwords-property/llms-full.txt) property must be set to inform the [TextControl](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/llms-full.txt) about the starting and ending positions of all misspelled words this text contains.

### Syntax

```csharp
public string Text { get; }
```

```vbnet
Public ReadOnly Property Text As String
```

### Examples

The following example uses `SpellCheckTextEventArgs.Text` while handling `SpellCheckText`.

```csharp
textControl.SpellCheckText += (_, e) =>
{
    Console.WriteLine($"Text: {e.Text}");
};
```

```vbnet
AddHandler textControl.SpellCheckText,
    Sub(sender, e)
        Console.WriteLine($"Text: {e.Text}")
    End Sub
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [SpellCheckTextEventArgs.MisspelledWords Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/spellchecktexteventargs/misspelledwords-property/llms-full.txt)
- **Next:** [StreamType Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/streamtype/enumeration/llms-full.txt)
