TX Text Control .NET for WPF

IsSpellCheckingEnabled Property

Property|Introduced in 16.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Specifies whether a text field's text is checked on misspelled words. The default setting of this property is true.

Syntax

public bool IsSpellCheckingEnabled { get; set; }

Examples

The following example inserts a Word-compatible text field into a template by using TextField.IsSpellCheckingEnabled.

TextField textField = new ApplicationField(ApplicationFieldFormat.MSWord, "MERGEFIELD", "Customer name", new[] { "CustomerName" });
textControl.TextFields.Add(textField);

textField.IsSpellCheckingEnabled = true;
if (textField.IsSpellCheckingEnabled)
{
    Console.WriteLine("Text Field: Is Spell Checking Enabled is enabled.");
}