IDataObject Interface

Summary

Interface to access information about the data of a drag-and-drop operation.
Namespace
Avalonia.Input
Implementing Types
graph BT Type["IDataObject"] class Type type-node Implementing0["DataObject"]-.->Type click Implementing0 "/api/Avalonia.Input/DataObject"

Syntax

public interface IDataObject

Methods

Name Value Summary
Contains(string) bool
Checks whether a given DataFormat is present in this object
Get(string) object?
Tries to get the data of the given DataFormat.
GetDataFormats() IEnumerable<string>
Lists all formats which are present in the DataObject.
GetFileNames() IEnumerable<string>?
Returns a list of filenames if the DataObject contains filenames.
GetText() string?
Returns the dragged text if the DataObject contains any text.