Pasteboard
Copy and paste strings or images.
Copy and paste strings and images to and from the pasteboard.
Methods
Section titled “Methods”
copy(string)
Section titled “copy(string)”Copies a string to the pasteboard.
static copy(string: string)Parameters
Section titled “Parameters”string string
The string to copy to the pasteboard.
copyImage(image)
Section titled “copyImage(image)”Copies an image to the pasteboard.
static copyImage(image: Image)Parameters
Section titled “Parameters”image Image
The image to copy to the pasteboard.
copyString(string)
Section titled “copyString(string)”Copies a string to the pasteboard.
static copyString(string: string)Parameters
Section titled “Parameters”string string
The string to copy to the pasteboard.
paste()
Section titled “paste()”Pastes a string from the pasteboard.
static paste(): stringReturn value
Section titled “Return value”string
String in the pasteboard or null if no string is in the pasteboard.
pasteImage()
Section titled “pasteImage()”Pastes an image from the pasteboard.
static pasteImage(): ImageReturn value
Section titled “Return value”Image
Image in the pasteboard or null if no image is in the pasteboard.
pasteString()
Section titled “pasteString()”Pastes a string from the pasteboard.
static pasteString(): stringReturn value
Section titled “Return value”string
String in the pasteboard or null if no string is in the pasteboard.