# IDataObject interface

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

```cs
public interface IDataObject
```

Interface to allow you to share common code with [Clipboard](https://eto.picoe.ca/api/type/eto.forms.clipboard.md) and [DataObject](https://eto.picoe.ca/api/type/eto.forms.dataobject.md).

**Derived types:** [Clipboard](https://eto.picoe.ca/api/type/eto.forms.clipboard.md), [Clipboard.IHandler](https://eto.picoe.ca/api/type/eto.forms.clipboard.ihandler.md), [DataObject](https://eto.picoe.ca/api/type/eto.forms.dataobject.md), [DataObject.IHandler](https://eto.picoe.ca/api/type/eto.forms.dataobject.ihandler.md)

## Properties

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

## Methods

- [Clear](https://eto.picoe.ca/api/type/eto.forms.idataobject/clear.md): Clears the data object completely of all values
- [Contains](https://eto.picoe.ca/api/type/eto.forms.idataobject/contains.md): Gets a value indicating that data with the specified type is contained in the data object.
- [GetData](https://eto.picoe.ca/api/type/eto.forms.idataobject/getdata.md): Gets a data array from the data object with the specified type identifier.
- [GetObject](https://eto.picoe.ca/api/type/eto.forms.idataobject/getobject.md): (3 overloads) Gets an object from the data object with the specified type
- [GetString](https://eto.picoe.ca/api/type/eto.forms.idataobject/getstring.md): Gets a string from the data object with the specified type identifier.
- [SetData](https://eto.picoe.ca/api/type/eto.forms.idataobject/setdata.md): sets a data array into the data object with the specified type identifier.
- [SetObject](https://eto.picoe.ca/api/type/eto.forms.idataobject/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.idataobject/setstring.md): Sets a string into the data object with the specified type identifier.
