TX Text Control .NET Server

SpellChecker Property

Property|Introduced in 17.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Server.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.Server.dll

Description

Specifies the spell checking component to be used with a ServerTextControl. The property value is null if there is no spell checking component connected. Otherwise it must be an object of the type TXSpell. When a spell checking component is connected and the IsSpellCheckingEnabled property has been set to true, the MisspelledWords collection is automatically filled with all misspelled words contained in the current 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 object SpellChecker { get; set; }

Examples

The following example uses ServerTextControl.SpellChecker to configure spell checker as part of the server text control workflow. The configured value is checked before the workflow continues.

textControl.SpellChecker = "Approved";
if (textControl.SpellChecker != null)
{
    Console.WriteLine("Server Text Control: Spell Checker is available.");
}