Back to Devexpress

How to: Use the SharedDictionaryStorage Component

windowsforms-3139-controls-and-libraries-spell-checker-examples-how-to-use-the-shared-dictionary-storage-component.md

latest1.2 KB
Original Source

How to: Use the SharedDictionaryStorage Component

  • Jun 29, 2021
  • 2 minutes to read

The following article describes how to add the SharedDictionaryStorage component to your application. The SharedDictionaryStorage allows you to use multiple dictionaries in one or more SpellChecker instances when the application forms need different dictionaries to check spelling.

  1. Drop the SharedDictionaryStorage from the Toolbox onto the main application form.

  2. Add dictionaries to the component. In the SharedDictionaryStorage’s property grid, click the Dictionaries item to invoke the Collection Editor.

  3. You can add dictionaries to the SharedDictionaryStorage collection in code. The code sample below adds German (Hunspell) and English (ISpell) dictionaries.

  4. Set the spell checker’s SpellCheckerBase.UseSharedDictionaries property to true to use dictionaries from the SharedStorageDictionary component.