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
ContainsText
bool? ContainsText();Whether the clipboard holds text now - what the edit menu asks before it offers Paste. Null where the platform cannot tell without reading it; Paste then stays offered.
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.