Click or drag to resize

ILanguagesAdd Method

Adds the language to the list of the languages for which spell checking is performed.

Namespace:  DotNetBrowser.SpellCheck
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.23.3
Syntax
C#
Task Add(
	Language language
)

Parameters

language
Type: DotNetBrowser.SpellCheckLanguage
The language to use for spell checking.

Return Value

Type: 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).
Exceptions
ExceptionCondition
ArgumentNullExceptionThe language is null.
ObjectDisposedException The ISpellChecker has already been disposed.
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.

See Also