Skip to main content

SpellCheckerCustomDictionary.AddWords(ICollection) Method

Appends words to the custom dictionary.

Namespace: DevExpress.XtraSpellChecker

Assembly: DevExpress.SpellChecker.v21.2.Core.dll

Declaration

public virtual void AddWords(
    ICollection words
)

Parameters

Name Type Description
words ICollection

A collection of words to be added to the dictionary.

Remarks

At first the method locks the dictionary. Then, for each word in the collection it changes the letters in a word to the lower case, appends a word to the custom dictionary, and fills in the corresponding metaphones. After that, it sorts the dictionary, saves it and rebuilds the dictionary’s alphabet. Finally the dictionary is unlocked.

See Also