CurrentTextControl 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 an object of type TXTextControl.TextControl and represents that TextControl which is currently handled by the SpellingCorrectionUIProvider. This property can be set by calling the SetCurrent(object textControl) method. Furthermore, it will be set to null by calling the SetCurrent(object textControl) method with a null parameter, setting the CurrentText property or using the Cancel method.
Syntax
public object CurrentTextControl { get; }Public ReadOnly Property CurrentTextControl As ObjectExamples
The following example includes the current text control value in application diagnostics. The created object is then available to the surrounding document workflow.
Console.WriteLine($"Current Text Control: {stateManager.CurrentTextControl}");
Console.WriteLine("State Manager is ready for use.");Console.WriteLine($"Current Text Control: {stateManager.CurrentTextControl}")
Console.WriteLine("State Manager is ready for use.")Limitations
Read only.