CurrentText Property
- Namespace
TXTextControl.Proofing
- Package
TXTextControl.asTXSpell. WinForms. SDK TXSpell.from the private NuGet feed or Text Control Offline Packagesdll
- Also in
TXTextControl.asTXSpell. Core. SDK TXSpell.dll
Description
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.
Syntax
public string CurrentText { get; }Public ReadOnly Property CurrentText As StringExamples
The following example includes the current text value in application diagnostics. The created object is then available to the surrounding document workflow.
Console.WriteLine($"Current Text: {stateManager.CurrentText}");
Console.WriteLine("State Manager is ready for use.");Console.WriteLine($"Current Text: {stateManager.CurrentText}")
Console.WriteLine("State Manager is ready for use.")Limitations
Read only.