TX Text Control .NET for Windows Forms

SpellChecker Property

Property|Introduced in 17.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

Description

Specifies the spell checking component to be used with a TextControl. The property value is null, if there is no spell checking component connected. Otherwise it must be an object of the type TXSpellChecker. When a spell checking component is connected and the IsSpellCheckingEnabled property has been set to true, misspelled words are automatically underlined with a red zigzag line. The SpellCheckDialog method can be used to correct the misspelled words contained in the document. When a spell checking component is connected and the IsHyphenationEnabled property has been set to true, a document is automatically hyphenated. If the IsLanguageDetectionEnabled property has been set to true, a language is automatically detected for all text parts with a neutral language.

Syntax

public Component SpellChecker { get; set; }

Examples

The following example uses TextControl.SpellChecker to configure spell checker as part of the text control workflow. The change is then applied to the active document or user interface.

textControl.SpellChecker = new System.ComponentModel.Component();
textControl.Update();