Class CustomDictionaryBase
Represents a class that stores information about custom words
Namespace: Syncfusion.SpellChecker.Base
Assembly: Syncfusion.SpellChecker.Base.dll
Syntax
public abstract class CustomDictionaryBase : DictionaryBase
Remarks
Extra words can be stored in custom dictionary. Any words added using ‘Add to dictionary’, is also stored in this custom dictionary.
Examples
var english = new HunspellDictionary(); english.Culture = new CultureInfo("en-us"); english.DictionaryUri = new Uri("/SpellCheckerDemo;component//english.dic"); english.GrammarUri = new Uri("/SpellCheckerDemo;component//english.aff");
var custom = new CustomDictionary(); custom.Culture = new CultureInfo("en-us"); english.DictionaryUri = new Uri("/Resources/custom.dic");
var dictionaries = new DictionaryCollection(); dictionaries.Add(english); dictionaries.Add(custom);
spellChecker.Dictionaries = dictionaries; spellChecker.Culture = new CultureInfo("en-us");
Constructors
CustomDictionaryBase()
Declaration
protected CustomDictionaryBase()