Method Add
- Namespace
- DotNetBrowser.SpellCheck
- Assembly
- DotNetBrowser.dll
Add(Language)
Adds the language to the list of the languages for which spell checking is performed.
Task Add(Language language)
Parameters
language
LanguageThe language to use for spell checking.
Returns
- Task
The task that can be used to wait until the dictionary is loaded from the user data directory. The task will fail with LanguageNotAvailableException if Chromium fails to download the dictionary for the given language (Windows and Linux), or the dictionary is not available in the system (macOS).
Remarks
On Windows and Linux, this method loads the dictionary for the given language and blocks the current thread execution until the dictionary is loaded from the user data directory. If the dictionary does not exist in the user data directory, the engine will download it from the remote server.
On macOS, this method checks whether the specified dictionaries are present in the system, and throws a LanguageNotAvailableException if not.
Exceptions
- ArgumentNullException
The language is null.
- ObjectDisposedException
The ISpellChecker has already been disposed.