---
title: Pasteboard
description: Copy and paste strings or images.
---

Copy and paste strings or images.

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

## Methods

<span id="copy" class="api-anchor"></span>

### copy(string)

Copies a string to the pasteboard.

```typescript
static copy(string: string)
```

#### Parameters

**`string` `string`**

The string to copy to the pasteboard.

<span id="copyimage" class="api-anchor"></span>

### copyImage(image)

Copies an image to the pasteboard.

```typescript
static copyImage(image: Image)
```

#### Parameters

**`image` `Image`**

The image to copy to the pasteboard.

### copyString(string)

Copies a string to the pasteboard.

```typescript
static copyString(string: string)
```

#### Parameters

**`string` `string`**

The string to copy to the pasteboard.

### paste()

Pastes a string from the pasteboard.

```typescript
static paste(): string
```

#### Return value

**`string`**

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

### pasteImage()

Pastes an image from the pasteboard.

```typescript
static pasteImage(): Image
```

#### Return value

**`Image`**

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

### pasteString()

Pastes a string from the pasteboard.

```typescript
static pasteString(): string
```

#### Return value

**`string`**

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