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 |
bool |
Checks whether a given DataFormat is present in this object
|
Get |
object? |
Tries to get the data of the given DataFormat.
|
GetDataFormats |
IEnumerable |
Lists all formats which are present in the DataObject.
|
GetFileNames |
IEnumerable |
Returns a list of filenames if the DataObject contains filenames.
|
GetText |
string? |
Returns the dragged text if the DataObject contains any text.
|