> For the complete documentation index, see [llms.txt](https://docs.wisej.com/hybrid/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wisej.com/hybrid/start/api/sharing/wisej.hybrid.deviceclipboard.md).

# DeviceClipboard

Namespace: **Wisej.Hybrid**

Assembly: **Wisej.Hybrid** (3.5.0.0)

Provides a convenient interface for interacting with the device's clipboard, allowing you to access and manipulate text content.

{% tabs %}
{% tab title="C#" %}

```csharp
public class DeviceClipboard
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class DeviceClipboard
```

{% endtab %}
{% endtabs %}

Access this class through the [Device](/hybrid/start/api/general/wisej.hybrid.device.md) singleton.

## Constructors

### ![](/files/CCV9PPenlC1YZvNh1I6R)DeviceClipboard()

Initializes a new instance of the [DeviceClipboard](/hybrid/start/api/sharing/wisej.hybrid.deviceclipboard.md) class and sets up clipboard event handling.

## Properties

### ![](/files/CCV9PPenlC1YZvNh1I6R)HasText

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Gets a value indicating whether the device's clipboard contains text content.

## Methods

### ![](/files/CCV9PPenlC1YZvNh1I6R)GetText()

Retrieves text from the device's clipboard.

**Returns:** [String](https://docs.microsoft.com/dotnet/api/system.string). The text content from the clipboard.

### ![](/files/CCV9PPenlC1YZvNh1I6R)SetText(text)

Sets the provided text into the device's clipboard.

| Parameter | Type                                                          | Description                             |
| --------- | ------------------------------------------------------------- | --------------------------------------- |
| **text**  | [String](https://docs.microsoft.com/dotnet/api/system.string) | The text to be copied to the clipboard. |

## Events

### ![](/files/CCV9PPenlC1YZvNh1I6R)ContentChanged

[EventHandler](https://docs.microsoft.com/dotnet/api/system.eventhandler) Occurs when the content in the device's clipboard changes.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wisej.com/hybrid/start/api/sharing/wisej.hybrid.deviceclipboard.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
