SpellCheckerCustomDictionary.AddWords(ICollection) Method
SECURITY-RELATED CONSIDERATIONS
Using file paths sourced from untrusted input may expose unauthorized files or allow unintended file access. Always validate and normalize all external paths to prevent path manipulation.
Appends words to the custom dictionary.
Namespace: DevExpress.XtraSpellChecker
Assembly: DevExpress.SpellChecker.v25.2.Core.dll
NuGet Package: DevExpress.SpellChecker.Core
Declaration
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.