New to Telerik UI for WPFStart a free 30-day trial

Provides basic methods for extracting data for the DragPayload class.

Definition

Namespace:Telerik.Windows.DragDrop

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public static class DragDropPayloadManager

Inheritance: objectDragDropPayloadManager

Methods

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

C#
public static IDragPayload GeneratePayload(DataConverter converter)
Parameters:converterDataConverter

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

Returns:

IDragPayload

The dray payload object.

Gets the data from object.

C#
public static object GetDataFromObject(object draggedObject, string format, bool autoConvert)
Parameters:draggedObjectobject

The dragged object.

formatstring

The format.

autoConvertbool

If set to true [auto convert].

Returns:

object

Gets the data from object.

C#
public static object GetDataFromObject(object draggedObject, string format)
Parameters:draggedObjectobject

The dragged object.

formatstring

The format.

Returns:

object

Gets the data from object.

C#
public static object GetDataFromObject(object draggedObject, Type format)
Parameters:draggedObjectobject

The dragged object.

formatType

The format.

Returns:

object

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

C#
public static bool GetDataPresent(object draggedObject, string format, bool autoConvert)
Parameters:draggedObjectobject

The dragged object.

formatstring

The format.

autoConvertbool

If set to true [auto convert].

Returns:

bool

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

C#
public static bool GetDataPresent(object draggedObject, string format)
Parameters:draggedObjectobject

The dragged object.

formatstring

The format.

Returns:

bool

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

C#
public static bool GetDataPresent(object draggedObject, Type format)
Parameters:draggedObjectobject

The dragged object.

formatType

The format.

Returns:

bool

Gets the formats.

C#
public static string[] GetFormats(object draggedObject, bool autoConvert)
Parameters:draggedObjectobject

The dragged object.

autoConvertbool

If set to true [auto convert].

Returns:

string[]

Gets the formats.

C#
public static string[] GetFormats(object draggedObject)
Parameters:draggedObjectobject

The dragged object.

Returns:

string[]

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

C#
public static void SetData(object draggedObject, string format, object value)
Parameters:draggedObjectobject

The dragged object.

formatstring

The format.

valueobject

The value.