IClipboardText interface Core

The platform's clipboard, as far as text boxes need it. A host implements it once; ControlHost.Clipboard hands it to every text box of a tree.

public interface IClipboardText
Namespace
ArionUI.Presentation.Controls
Package
ArionUI.Presentation · dotnet add package ArionUI.Presentation --prerelease

Methods

RequestText

void RequestText(Action<string> deliver);

Read the clipboard's text and hand it to deliver on the UI thread - at once, or later where the platform reads asynchronously. Nothing is delivered when the clipboard holds no text.

SetText

void SetText(string text);

Put text on the clipboard.