# 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 for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 16.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 > SpellCheckTextEventArgs.Text Property
- **376 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/spellchecktexteventargs/text-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/spellchecktexteventargs/text-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/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-winforms/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-winforms/reference/txtextcontrol/spellchecktexteventargs/misspelledwords-property/llms-full.txt)
- **Next:** [StatusBar Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/statusbar/llms-full.txt)
