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) Version: 11.3.999
public interface IDataObject

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