ILanguagesAdd Method |
Namespace: DotNetBrowser.SpellCheck
Task Add( Language language )
Exception | Condition |
---|---|
ArgumentNullException | The language is null. |
ObjectDisposedException | The ISpellChecker has already been disposed. |
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.