Class
DragDropPayloadManager

Provides basic methods for extracting data for the DragPayload class.

Definition

Namespace:Telerik.Windows.DragDrop

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
public static class DragDropPayloadManager

Inheritance: objectDragDropPayloadManager

Methods

GeneratePayload(DataConverter)

Generate drag payload class based on the security restrictions (e.g. partial trust or full trust application).

Declaration

cs-api-definition
public static IDragPayload GeneratePayload(DataConverter converter)

Parameters

converter

DataConverter

Data converter used to convert the data from one type to another.

Returns

IDragPayload

The dray payload object.

GetDataFromObject(object, Type)

Gets the data from object.

Declaration

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

Parameters

draggedObject

object

The dragged object.

format

Type

The format.

Returns

object

GetDataFromObject(object, string)

Gets the data from object.

Declaration

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

Parameters

draggedObject

object

The dragged object.

format

string

The format.

Returns

object

GetDataFromObject(object, string, bool)

Gets the data from object.

Declaration

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

Parameters

draggedObject

object

The dragged object.

format

string

The format.

autoConvert

bool

If set to true [auto convert].

Returns

object

GetDataPresent(object, Type)

Indicates whether data of a certain format is present in the draggedObject parameter.

Declaration

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

Parameters

draggedObject

object

The dragged object.

format

Type

The format.

Returns

bool

GetDataPresent(object, string)

Indicates whether data of a certain format is present in the draggedObject parameter.

Declaration

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

Parameters

draggedObject

object

The dragged object.

format

string

The format.

Returns

bool

GetDataPresent(object, string, bool)

Indicates whether data of a certain format is present in the draggedObject parameter.

Declaration

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

Parameters

draggedObject

object

The dragged object.

format

string

The format.

autoConvert

bool

If set to true [auto convert].

Returns

bool

GetFormats(object)

Gets the formats.

Declaration

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

Parameters

draggedObject

object

The dragged object.

Returns

string[]

GetFormats(object, bool)

Gets the formats.

Declaration

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

Parameters

draggedObject

object

The dragged object.

autoConvert

bool

If set to true [auto convert].

Returns

string[]

SetData(object, string, object)

Sets the data for the draggedObject parameter of a given format.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "object")]
public static void SetData(object draggedObject, string format, object value)

Parameters

draggedObject

object

The dragged object.

format

string

The format.

value

object

The value.