DataObject Class

Specific and mutable implementation of the IDataObject interface.

Definition

Namespace: Avalonia.Input
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public class DataObject : IDataObject
Inheritance
Object    DataObject
Implements
IDataObject

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)
FinalizeAllows 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.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates 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.
ToStringReturns 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)

See Also