IsSpellCheckingEnabled Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
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; }Public Property IsSpellCheckingEnabled As BooleanExamples
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.");
}Dim textField As TextField = New ApplicationField(ApplicationFieldFormat.MSWord, "MERGEFIELD", "Customer name", New String() { "CustomerName" })
textControl.TextFields.Add(textField)
textField.IsSpellCheckingEnabled = True
If textField.IsSpellCheckingEnabled Then
Console.WriteLine("Text Field: Is Spell Checking Enabled is enabled.")
End If