Products Technologies Demo Docs Blog Support Company

TX Spell .NET: Ignore Word List Using User Dictionaries

A unique feature of TX Spell .NET is the possibility to use multiple dictionaries at the same time for the spell checking process. This is valid for language dictionaries and user dictionaries. Based on that feature, you can realize lists with words that should be completely ignored by TX Spell .NET. Simply create an additional UserDictionary and set the IsEditable property to false. This indicates whether words can be added to the dictionary using the context menu or spell checking dialog…

TX Spell .NET: Ignore Word List Using User Dictionaries
TX Spell .NET: Ignore word list using user dictionaries

A unique feature of TX Spell .NET is the possibility to use multiple dictionaries at the same time for the spell checking process. This is valid for language dictionaries and user dictionaries.

Based on that feature, you can realize lists with words that should be completely ignored by TX Spell .NET. Simply create an additional UserDictionary and set the IsEditable property to false. This indicates whether words can be added to the dictionary using the context menu or spell checking dialog or not.

The following code creates those two user dictionaries:

// Regular, editable user dictionary
UserDictionary userDict = new UserDictionary();
txSpellChecker1.Dictionaries.Add(userDict);

userDict.Language = new CultureInfo("en-US");

// Additional, non-editable user dictionary
UserDictionary ignoreDict = new UserDictionary();
txSpellChecker1.Dictionaries.Add(ignoreDict);

ignoreDict.Language = new CultureInfo("en-US");
ignoreDict.AddWord("TXTextControl");
ignoreDict.AddWord("TXSpell");
ignoreDict.AddWord("TXBarcode");

ignoreDict.IsEditable = false;

Happy coding!

Stay in the loop!

Subscribe to the newsletter to receive the latest updates.

Related Posts

HTML5Spell CheckingTutorial

Web.TextControl and Spell Checking

In combination with the spell checking component TX Spell .NET for Windows Forms (with ASP.NET support), spell checking can be easily added to web-based applications created with TX Text Control…


ProofingSpell CheckingTutorial

TX Spell .NET: Not Only a Spell Checker

Using TX Spell .NET, you can easily integrate powerful proofing tools into your TX Text Control based applications. The proofing tools for Windows Forms, WPF and ASP.NET doesn't only provide…


Spell CheckingTutorial

AutoCorrect: TWo INitial CApitals

In today's mobile world and because of the progress made in AutoCorrect technology in smartphones, users get confused, if their desktop application doesn't provide the same functionality. Using TX…


GitHubSpell CheckingTutorial

TX Spell .NET ActiveX Package Released - Spell Checking in VB6

TX Spell .NET ActiveX Package enables you to add high-performance spell checking capabilities to your VB6 applications. Technically, it is based on TX Spell .NET for Windows Forms that gives you…


SampleSpell CheckingTutorial

Porting RapidSpell to TX Spell .NET

Our new spell checking component TX Spell .NET can be easily used to replace RapidSpell in your projects. Integrating TX Spell .NET into TX Text Control based applications is as easy as 1-2-3.…