SpellChecker Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. Core. dll
- Also in
TXTextControl.asTextControl. ASP. SDK 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; }Public Property SpellChecker As ObjectExamples
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.");
}textControl.SpellChecker = "Approved"
If textControl.SpellChecker IsNot Nothing Then
Console.WriteLine("Server Text Control: Spell Checker is available.")
End If