DataObject Class
Obsolete.
Use DataTransfer instead
Specific and mutable implementation of the IDataObject interface.
Definition
Namespace: Avalonia.Input
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
[ObsoleteAttribute("Use DataTransfer instead")]
public class DataObject : IDataObject
<ObsoleteAttribute("Use DataTransfer instead")>
Public Class DataObject
Implements IDataObject
[<ObsoleteAttribute("Use DataTransfer instead")>]
type DataObject =
class
interface IDataObject
end
| Inheritance | Object → DataObject |
| Implements | IDataObject |
Constructors
| DataObject() | Initializes a new instance of the DataObject class |
Methods
| Contains(String) | Checks whether a given DataFormat is present in this object |
| Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
| Get(String) | Tries to get the data of the given DataFormat. |
| GetDataFormats() | Lists all formats which are present in the DataObject. |
| GetHashCode() | Serves as the default hash function. (Inherited from Object) |
| GetType() | Gets the Type of the current instance. (Inherited from Object) |
| MemberwiseClone() | Creates a shallow copy of the current Object. (Inherited from Object) |
| Set(String, Object) | Sets a value to the internal store of the data object with DataFormats as a key. |
| ToString() | Returns a string that represents the current object. (Inherited from Object) |
Extension Methods
| GetFiles() | Returns a list of files if the DataObject contains files or filenames. . (Defined by DataObjectExtensions) |
| GetText() | Returns the dragged text if the DataObject contains any text. (Defined by DataObjectExtensions) |