# SpellingCorrectionUIProvider.StateManager.CurrentText Property

> Gets that text which is currently handled by the SpellingCorrectionUIProvider. This property can be set by calling the SetCurrent(string text) method. Furthermore, it will be set to null by calling the SetCurrent(string text) method with a null parameter, setting the CurrentTextControl property or using the Cancel method.

- **Product:** TX Spell .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 6.0
- **Namespace:** `TXTextControl.Proofing`
- **Package:** `TXTextControl.TXSpell.WinForms.SDK` (assembly `TXSpell.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TXSpell.Core.SDK` (assembly `TXSpell.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXSpell.dll` from the setup
- **Path:** TX Spell .NET for Windows Forms > Reference > TXTextControl.Proofing > SpellingCorrectionUIProvider.StateManager.CurrentText Property
- **446 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-statemanager/currenttext-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-statemanager/currenttext-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-statemanager/currenttext-property/llms-full.txt

---

### Description

Gets that text which is currently handled by the [SpellingCorrectionUIProvider](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspell/spellingcorrectionuiprovider-property/llms-full.txt). This property can be set by calling the [SetCurrent(string text)](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-statemanager/setcurrent-method/llms-full.txt) method. Furthermore, it will be set to null by calling the SetCurrent(string text) method with a null parameter, setting the [CurrentTextControl](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-statemanager/currenttextcontrol-property/llms-full.txt) property or using the [Cancel](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-statemanager/cancel-method/llms-full.txt) method.

### Syntax

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

```vbnet
Public ReadOnly Property CurrentText As String
```

### Examples

The following example includes the current text value in application diagnostics. The created object is then available to the surrounding document workflow.

```csharp
Console.WriteLine($"Current Text: {stateManager.CurrentText}");
Console.WriteLine("State Manager is ready for use.");
```

```vbnet
Console.WriteLine($"Current Text: {stateManager.CurrentText}")
Console.WriteLine("State Manager is ready for use.")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [SpellingCorrectionUIProvider.StateManager.CurrentIFormattedText Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-statemanager/currentiformattedtext-property/llms-full.txt)
- **Next:** [SpellingCorrectionUIProvider.StateManager.CurrentTextControl Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-statemanager/currenttextcontrol-property/llms-full.txt)
