IDesktopSpellCheckingWindowHost interface

Namespace Runic.Desktop in Runic.Desktop 0.23.0

public interface IDesktopSpellCheckingWindowHost : IDesktopWindowHost, IAsyncDisposable

Inherits or implements 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

languages

BCP 47 language tags, checked by DesktopHost; empty for the user's languages.

cancellationToken

Cancels the queued native work.

Returns

A task that completes when the checker uses the languages.