TX Spell .NET for WPF

IgnoreCase Property

Property
Namespace
TXTextControl.WPF.Proofing
Package
TXTextControl.TXSpell.WPF.SDK as TXSpell.WPF.dll from the private NuGet feed or Text Control Offline Packages

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; }

Examples

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}");

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.