Skip to main content

IDataObject Interface

Interface to access information about the data of a drag-and-drop operation.

Definition

Namespace: Avalonia.Input
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public interface IDataObject
View Source

Methods

Contains(String)Checks whether a given DataFormat is present in this object
Get(String)Tries to get the data of the given DataFormat.
GetDataFormats()Lists all formats which are present in the DataObject.

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

Reference

Avalonia.Input Namespace