Click or drag to resize

DataObject Class

Drag/Drop action data.
Inheritance Hierarchy

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public class DataObject : Widget, IDataObject

The DataObject type exposes the following members.

Constructors
  NameDescription
Public methodDataObject
Initializes a new instance of the DataObject class.
Public methodDataObject(DataObjectIHandler)
Initializes a new instance of the DataObject class.
Top
Properties
  NameDescription
Public propertyContainsHtml
Gets a value indicating whether this DataObject contains a value for Html.
Public propertyContainsImage
Gets a value indicating whether this DataObject contains a value for Image.
Public propertyContainsText
Gets a value indicating whether this DataObject contains a value for Text.
Public propertyContainsUris
Gets a value indicating whether this DataObject contains a value for Uris.
Public propertyHtml
Gets or sets html text in the data object.
Public propertyImage
Gets or sets an image in the data object.
Public propertyText
Gets or sets the plain text in the data object.
Public propertyTypes
Gets the types of data in the data object to be used with GetString(String) and GetData(String)
Public propertyUris
Gets or sets the Uri's of the files in the data object
Top
Methods
  NameDescription
Public methodClear
Clears the data object
Public methodContains
Gets a value indicating that data with the specified type is contained in the data object.
Public methodGetData
Gets a byte array from the data object with the specified type identifier.
Public methodGetDataStream
Gets the data stream with the specified type identifier.
Public methodGetObject(String)
Gets a serialized value with the specified type identifier.
Public methodGetObjectT(String)
Gets an object from the data object with the specified type
Public methodGetString
Gets a string from the data object with the specified type identifier.
Public methodSetData
Sets a data array for the specified type identifier.
Public methodSetDataStream
Sets a data stream into the clipboard with the specified type identifier.
Public methodSetObject
Sets the value into the data object with the specified type using serialization or type converter
Public methodSetString
Sets a string into the data object with the specified custom type.
Top
See Also