# DataObject 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(DataObject.IHandler)]
public class DataObject : Widget, IDataObject
```

Drag/Drop action data.

## Constructors

- [DataObject](https://eto.picoe.ca/api/type/eto.forms.dataobject/ctor.md): (2 overloads) Initializes a new instance of the `DataObject` class.

## Properties

- [ContainsHtml](https://eto.picoe.ca/api/type/eto.forms.dataobject/containshtml.md): Gets a value indicating whether this `DataObject` contains a value for [DataObject.Html](https://eto.picoe.ca/api/type/eto.forms.dataobject/html.md).
- [ContainsImage](https://eto.picoe.ca/api/type/eto.forms.dataobject/containsimage.md): Gets a value indicating whether this `DataObject` contains a value for [DataObject.Image](https://eto.picoe.ca/api/type/eto.forms.dataobject/image.md).
- [ContainsText](https://eto.picoe.ca/api/type/eto.forms.dataobject/containstext.md): Gets a value indicating whether this `DataObject` contains a value for [DataObject.Text](https://eto.picoe.ca/api/type/eto.forms.dataobject/text.md).
- [ContainsUris](https://eto.picoe.ca/api/type/eto.forms.dataobject/containsuris.md): Gets a value indicating whether this `DataObject` contains a value for [DataObject.Uris](https://eto.picoe.ca/api/type/eto.forms.dataobject/uris.md).
- [Html](https://eto.picoe.ca/api/type/eto.forms.dataobject/html.md): Gets or sets html text in the data object.
- [Image](https://eto.picoe.ca/api/type/eto.forms.dataobject/image.md): Gets or sets an image in the data object.
- [Text](https://eto.picoe.ca/api/type/eto.forms.dataobject/text.md): Gets or sets the plain text in the data object.
- [Types](https://eto.picoe.ca/api/type/eto.forms.dataobject/types.md): Gets the types of data in the data object to be used with [DataObject.GetString(string)](https://eto.picoe.ca/api/type/eto.forms.dataobject/getstring.md) and [DataObject.GetData(string)](https://eto.picoe.ca/api/type/eto.forms.dataobject/getdata.md)
- [Uris](https://eto.picoe.ca/api/type/eto.forms.dataobject/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.dataobject/clear.md): Clears the data object
- [Contains](https://eto.picoe.ca/api/type/eto.forms.dataobject/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.dataobject/getdata.md): Gets a byte array from the data object with the specified type identifier.
- [GetDataStream](https://eto.picoe.ca/api/type/eto.forms.dataobject/getdatastream.md): Gets the data stream with the specified type identifier.
- [GetObject](https://eto.picoe.ca/api/type/eto.forms.dataobject/getobject.md): (3 overloads) Gets an object from the data object with the specified type
- [GetString](https://eto.picoe.ca/api/type/eto.forms.dataobject/getstring.md): Gets a string from the data object with the specified type identifier.
- [SetData](https://eto.picoe.ca/api/type/eto.forms.dataobject/setdata.md): Sets a data array for the specified type identifier.
- [SetDataStream](https://eto.picoe.ca/api/type/eto.forms.dataobject/setdatastream.md): Sets a data stream into the clipboard with the specified type identifier.
- [SetObject](https://eto.picoe.ca/api/type/eto.forms.dataobject/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.dataobject/setstring.md): Sets a string into the data object with the specified custom type.

## 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), [GetCallback](https://eto.picoe.ca/api/type/eto.widget/getcallback.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)
