Skip to content

Pasteboard

Copy and paste strings or images.

Copy and paste strings and images to and from the pasteboard.

Copies a string to the pasteboard.

static copy(string: string)

string string

The string to copy to the pasteboard.

Copies an image to the pasteboard.

static copyImage(image: Image)

image Image

The image to copy to the pasteboard.

Copies a string to the pasteboard.

static copyString(string: string)

string string

The string to copy to the pasteboard.

Pastes a string from the pasteboard.

static paste(): string

string

String in the pasteboard or null if no string is in the pasteboard.

Pastes an image from the pasteboard.

static pasteImage(): Image

Image

Image in the pasteboard or null if no image is in the pasteboard.

Pastes a string from the pasteboard.

static pasteString(): string

string

String in the pasteboard or null if no string is in the pasteboard.