TX Spell .NET for Windows Forms

CurrentTextControl Property

Property|Introduced in 6.0
Namespace
TXTextControl.Proofing
Package
TXTextControl.TXSpell.WinForms.SDK as TXSpell.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TXSpell.Core.SDK as 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; }

Examples

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.");

Limitations

Read only.