Click or drag to resize

DataObject Class

Drag/Drop action data.
Inheritance Hierarchy

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.4.0
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 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 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 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 methodSetString
Sets a string into the data object with the specified custom type.
Top
See Also