Class
DataObjectHelper

Provides a trust settings independent way to retrieve drag data.

Definition

Namespace:Telerik.Windows.DragDrop.Behaviors

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
public static class DataObjectHelper

Inheritance: objectDataObjectHelper

Methods

GetData(object, Type, bool)

Retrieves a data object in a specified format, and optionally, converts the data to the specified format.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "object")]
public static object GetData(object dataObject, Type format, bool autoConvert)

Parameters

dataObject

object

format

Type

autoConvert

bool

Returns

object

GetData(object, string, bool)

Retrieves a data object in a specified format, and optionally, converts the data to the specified format.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "object")]
public static object GetData(object dataObject, string format, bool autoConvert)

Parameters

dataObject

object

format

string

autoConvert

bool

Returns

object

GetDataPresent(object, Type, bool)

Retrieves a data object in a specified format, and optionally, converts the data to the specified format.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "object")]
public static bool GetDataPresent(object dataObject, Type format, bool autoConvert)

Parameters

dataObject

object

format

Type

autoConvert

bool

Returns

bool

GetDataPresent(object, string, bool)

Retrieves a data object in a specified format, and optionally, converts the data to the specified format.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "object")]
public static bool GetDataPresent(object dataObject, string format, bool autoConvert)

Parameters

dataObject

object

format

string

autoConvert

bool

Returns

bool

GetFormats(object, bool)

Returns a list of all formats that the data in this data object is stored in. A Boolean flag indicates whether to also include formats that the data can be automatically converted to.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "object")]
public static string[] GetFormats(object dataObject, bool autoConvert)

Parameters

dataObject

object

autoConvert

bool

Returns

string[]