# Clipboard class

Namespace: [Eto.Forms](https://eto.picoe.ca/api/namespace/eto.forms.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md)

```cs
[Handler(Clipboard.IHandler)]
public class Clipboard : Widget, IDataObject
```

Object to handle the system clipboard. Use [Clipboard.Instance](https://eto.picoe.ca/api/type/eto.forms.clipboard/instance.md) to avoid creating multiple copies of this object.

## Fields

- [ChangedEvent](https://eto.picoe.ca/api/type/eto.forms.clipboard/changedevent.md): (static) Identifier for handlers when attaching the [Clipboard.Changed](https://eto.picoe.ca/api/type/eto.forms.clipboard/changed.md) event.

## Properties

- [ContainsHtml](https://eto.picoe.ca/api/type/eto.forms.clipboard/containshtml.md): Gets a value indicating whether this `Clipboard` contains a value for [Clipboard.Html](https://eto.picoe.ca/api/type/eto.forms.clipboard/html.md).
- [ContainsImage](https://eto.picoe.ca/api/type/eto.forms.clipboard/containsimage.md): Gets a value indicating whether this `Clipboard` contains a value for [Clipboard.Image](https://eto.picoe.ca/api/type/eto.forms.clipboard/image.md).
- [ContainsText](https://eto.picoe.ca/api/type/eto.forms.clipboard/containstext.md): Gets a value indicating whether this `Clipboard` contains a value for [Clipboard.Text](https://eto.picoe.ca/api/type/eto.forms.clipboard/text.md).
- [ContainsUris](https://eto.picoe.ca/api/type/eto.forms.clipboard/containsuris.md): Gets a value indicating whether this `Clipboard` contains a value for [Clipboard.Uris](https://eto.picoe.ca/api/type/eto.forms.clipboard/uris.md).
- [Html](https://eto.picoe.ca/api/type/eto.forms.clipboard/html.md): Gets or sets html text in the clipboard.
- [Image](https://eto.picoe.ca/api/type/eto.forms.clipboard/image.md): Gets or sets an image in the clipboard.
- [Instance](https://eto.picoe.ca/api/type/eto.forms.clipboard/instance.md): (static) Gets the shared clipboard instance
- [Text](https://eto.picoe.ca/api/type/eto.forms.clipboard/text.md): Gets or sets the plain text in the clipboard.
- [Types](https://eto.picoe.ca/api/type/eto.forms.clipboard/types.md): Gets the type id's for each type of data in the clipboard.
- [Uris](https://eto.picoe.ca/api/type/eto.forms.clipboard/uris.md): Gets or sets the Uri's of the files in the clipboard.

## Methods

- [Clear](https://eto.picoe.ca/api/type/eto.forms.clipboard/clear.md): Clears the clipboard completely of all values
- [Contains](https://eto.picoe.ca/api/type/eto.forms.clipboard/contains.md): Gets a value indicating that data with the specified type is contained in the clipboard.
- [GetCallback](https://eto.picoe.ca/api/type/eto.forms.clipboard/getcallback.md): Gets an instance of an object used to perform callbacks to the widget from handler implementations
- [GetData](https://eto.picoe.ca/api/type/eto.forms.clipboard/getdata.md): Gets a data array from the clipboard with the specified type identifier.
- [GetDataStream](https://eto.picoe.ca/api/type/eto.forms.clipboard/getdatastream.md): Gets the data stream with the specified type identifier.
- [GetObject](https://eto.picoe.ca/api/type/eto.forms.clipboard/getobject.md): (3 overloads) Gets an object from the data object with the specified type
- [GetString](https://eto.picoe.ca/api/type/eto.forms.clipboard/getstring.md): Gets a string from the clipboard with the specified type identifier.
- [OnChanged](https://eto.picoe.ca/api/type/eto.forms.clipboard/onchanged.md): Raises the [Clipboard.Changed](https://eto.picoe.ca/api/type/eto.forms.clipboard/changed.md) event.
- [SetData](https://eto.picoe.ca/api/type/eto.forms.clipboard/setdata.md): sets a data array into the clipboard with the specified type identifier.
- [SetDataStream](https://eto.picoe.ca/api/type/eto.forms.clipboard/setdatastream.md): Sets a data stream into the clipboard with the specified type identifier.
- [SetObject](https://eto.picoe.ca/api/type/eto.forms.clipboard/setobject.md): Sets the `value` into the data object with the specified `type` using serialization or type converter
- [SetString](https://eto.picoe.ca/api/type/eto.forms.clipboard/setstring.md): Sets a string into the clipboard with the specified type identifier.

## Events

- [Changed](https://eto.picoe.ca/api/type/eto.forms.clipboard/changed.md): Occurs when the system clipboard contents have changed.

## Inherited Members

- From [Widget](https://eto.picoe.ca/api/type/eto.widget.md): [ControlObject](https://eto.picoe.ca/api/type/eto.widget/controlobject.md), [Handler](https://eto.picoe.ca/api/type/eto.widget/handler.md), [ID](https://eto.picoe.ca/api/type/eto.widget/id.md), [IsDisposed](https://eto.picoe.ca/api/type/eto.widget/isdisposed.md), [NativeHandle](https://eto.picoe.ca/api/type/eto.widget/nativehandle.md), [Platform](https://eto.picoe.ca/api/type/eto.widget/platform.md), [Properties](https://eto.picoe.ca/api/type/eto.widget/properties.md), [Style](https://eto.picoe.ca/api/type/eto.widget/style.md), [StyleChanged](https://eto.picoe.ca/api/type/eto.widget/stylechanged.md), [Dispose](https://eto.picoe.ca/api/type/eto.widget/dispose.md), [Initialize](https://eto.picoe.ca/api/type/eto.widget/initialize.md), [OnStyleChanged](https://eto.picoe.ca/api/type/eto.widget/onstylechanged.md), [ToString](https://eto.picoe.ca/api/type/eto.widget/tostring.md)
