Interface IClipboard
The system clipboard, as text.
public interface IClipboard
Remarks
An interface rather than a static call so a control can be tested without a window: the SDL-backed implementation needs a real SDL context, and a paste test wants to say what is on the clipboard rather than put something there.
Methods
GetText()
The clipboard's text, or an empty string when it holds nothing this can read - it may well hold an image, a file list or nothing at all. Never null.
string GetText()
Returns
SetText(string)
Replaces the clipboard's contents. A null is written as an empty string.
void SetText(string text)
Parameters
textstring