public interface IUiClipboardThe system clipboard, as much of it as a user interface needs.
Remarks
⚠ This is not Vixen.Platform.IClipboard, and it cannot be. Vixen.Ui is a Core/ assembly and doc 00's layering forbids it a reference to Platform/ — the same rule that put IUiWindowHost here rather than letting a docking host name a real window. So the seam is declared here and filled in by Vixen.Platform.Ui, which is the assembly that exists to join the two.
Text only, deliberately. The platform interface carries images and arbitrary formats and the backends implement all of it; what a text control can do with a pasteboard is text, and an interface promising a control something it has no code to accept is the kind of surface that reads as done and is not. An application that wants the image flavours has IPlatform.Clipboard and always did.
Synchronous, and Try-shaped, for the reasons IClipboard states. A browser will only ever serve what its last paste event delivered, and a read can fail because another application owns the pasteboard and has stopped answering. Neither is exceptional.
Fields and properties (1)
bool HasTextWhether the clipboard currently holds text.
Methods (2)
bool TryGetText(out string? text)Reads the clipboard's text.
bool SetText(string text)Puts text on the clipboard.
Used by (8)
- HierarchyHelloUi
- ShellHelloUi
- CodeEditorVixen.Ui.Controls.Advanced
- FakeClipboardVixen.Ui.Controls.Advanced.Tests
- FakeClipboardVixen.Ui.Controls.Tests
- PlatformClipboardVixen.Platform.Ui
- TextFieldVixen.Ui.Controls
- UiDocumentVixen.Ui