Interface
IDataObject

Provides a format-independent mechanism for transferring data.

Definition

Namespace:Telerik.UI.Xaml.Controls.DragDrop

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public interface IDataObject

Derived Classes: PayloadSchedulerDragDropPayload

Methods

GetData(Type)

Retrieves the data associated with the specified class type format.

Declaration

cs-api-definition
[SecurityCritical]
object GetData(Type format)

Parameters

format

Type

A Type representing the format of the data to retrieve.

Returns

object

GetData(string)

Retrieves the data associated with the specified data format.

Declaration

cs-api-definition
[SecurityCritical]
object GetData(string format)

Parameters

format

string

The format of the data to retrieve.

Returns

object

GetData(string, bool)

Retrieves the data associated with the specified data format, using autoConvert to determine whether to convert the data to the format.

Declaration

cs-api-definition
[SecurityCritical]
object GetData(string format, bool autoConvert)

Parameters

format

string

The format of the data to retrieve.

autoConvert

bool

true to convert the data to the specified format; otherwise, false.

Returns

object

GetDataPresent(Type)

Determines whether data stored in this instance is associated with, or can be converted to, the specified format.

Declaration

cs-api-definition
[SecurityCritical]
bool GetDataPresent(Type format)

Parameters

format

Type

A Type representing the format for which to check.

Returns

bool

GetDataPresent(string)

Determines whether data stored in this instance is associated with, or can be converted to, the specified format.

Declaration

cs-api-definition
[SecurityCritical]
bool GetDataPresent(string format)

Parameters

format

string

The format for which to check.

Returns

bool

GetDataPresent(string, bool)

Determines whether data stored in this instance is associated with the specified format, using autoConvert to determine whether to convert the data to the format.

Declaration

cs-api-definition
[SecurityCritical]
bool GetDataPresent(string format, bool autoConvert)

Parameters

format

string

The format for which to check.

autoConvert

bool

true to determine whether data stored in this instance can be converted.

Returns

bool

GetFormats()

Gets a list of all formats that data stored in this instance is associated with or can be converted to.

Declaration

cs-api-definition
[SecurityCritical]
string[] GetFormats()

Returns

string[]

GetFormats(bool)

Gets a list of all formats that data stored in this instance is associated with or can be converted to, using autoConvert to determine whether to retrieve all formats that the data can be converted to or only native data formats.

Declaration

cs-api-definition
[SecurityCritical]
string[] GetFormats(bool autoConvert)

Parameters

autoConvert

bool

true to retrieve all formats that data stored in this instance is associated with or can be converted to; false to retrieve only native data formats.

Returns

string[]

SetData(Type, object)

Stores the specified data and its associated class type in this instance.

Declaration

cs-api-definition
[SecurityCritical]
void SetData(Type format, object data)

Parameters

format

Type

A Type representing the format associated with the data.

data

object

The data to store.

SetData(object)

Stores the specified data in this instance, using the class of the data for the format.

Declaration

cs-api-definition
[SecurityCritical]
void SetData(object data)

Parameters

data

object

The data to store.

SetData(string, object)

Stores the specified data and its associated format in this instance.

Declaration

cs-api-definition
[SecurityCritical]
void SetData(string format, object data)

Parameters

format

string

The format associated with the data.

data

object

The data to store.

SetData(string, object, bool)

Stores the specified data and its associated format in this instance, using autoConvert to specify whether the data can be converted to another format.

Declaration

cs-api-definition
[SecurityCritical]
void SetData(string format, object data, bool autoConvert)

Parameters

format

string

The format associated with the data.

data

object

The data to store.

autoConvert

bool

true to allow the data to be converted to another format; Otherwise, false.