IgnoreCase Property
- Namespace
TXTextControl.WPF. Proofing
- Package
TXTextControl.asTXSpell. WPF. SDK TXSpell.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Gets or sets a value of type IgnoreCaseSettings determining if and how the case of a word is ignored while spell checking. The default value is AllUpper | WordBeginUpper.
Syntax
public TXSpell.IgnoreCaseSettings IgnoreCase { get; set; }Public Property IgnoreCase As TXSpell.IgnoreCaseSettingsExamples
The following example uses TXSpellChecker.IgnoreCase to configure ignore case as part of the txspell checker workflow. The configured value is checked before the workflow continues.
tXSpellChecker.IgnoreCase = TXTextControl.Proofing.TXSpell.IgnoreCaseSettings.AllLower;
Console.WriteLine($"Ignore Case used by TXSpell Checker: {tXSpellChecker.IgnoreCase}");tXSpellChecker.IgnoreCase = TXTextControl.Proofing.TXSpell.IgnoreCaseSettings.AllLower
Console.WriteLine($"Ignore Case used by TXSpell Checker: {tXSpellChecker.IgnoreCase}")Remarks
The IgnoreCaseSettings enumeration values Always, Never, WordBegin and WordBeginUpper must not be combined among one another, but can be combined with AllLower and/or AllUpper.
For all other combinations an exception is thrown.