public interface IDesktopSpellCheckingWindowHost : IDesktopWindowHost, IAsyncDisposable An optional native host whose spell checker takes languages.
Remarks
Runic Desktop finds it by type, like IDesktopWindowStateHost, and calls IDesktopSpellCheckingWindowHost.SetSpellCheckingLanguagesAsync after DesktopHost.SetSpellCheckingLanguagesAsync, and after the window opened when the languages changed while it was opening. When opening, apply DesktopWindowHostOptions.SpellCheckingLanguages. A host whose checker has no languages, such as WebView2, does not implement it.
Methods
SetSpellCheckingLanguagesAsync
ValueTask SetSpellCheckingLanguagesAsync(IReadOnlyList<string> languages, CancellationToken cancellationToken = default) Changes the languages the window's spell checker checks.
Parameters
languagesBCP 47 language tags, checked by
DesktopHost; empty for the user's languages.cancellationTokenCancels the queued native work.
Returns
A task that completes when the checker uses the languages.