Interface IDataObject
Interface to access information about the data of a drag-and-drop operation.
public interface IDataObject
- Extension Methods
Methods
Contains(string)
Checks whether a given DataFormat is present in this object DataFormats
bool Contains(string dataFormat)
Parameters
dataFormat
string
Returns
Get(string)
Tries to get the data of the given DataFormat.
object? Get(string dataFormat)
Parameters
dataFormat
string
Returns
- object
Object data. If format isn't available, returns null.
GetDataFormats()
Lists all formats which are present in the DataObject. DataFormats
IEnumerable<string> GetDataFormats()