ClassDragDropPayloadManager
Provides basic methods for extracting data for the DragPayload class.
Definition
Namespace:Telerik.Windows.DragDrop
Assembly:Telerik.Windows.Controls.dll
Syntax:
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
public static IDragPayload GeneratePayload(DataConverter converter)
Parameters
converter
Data converter used to convert the data from one type to another.
Returns
The dray payload object.
GetDataFromObject(object, Type)
Gets the data from object.
Declaration
[SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "object")]
public static object GetDataFromObject(object draggedObject, Type format)
Parameters
draggedObject
The dragged object.
format
The format.
Returns
GetDataFromObject(object, string)
Gets the data from object.
Declaration
[SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "object")]
public static object GetDataFromObject(object draggedObject, string format)
Parameters
draggedObject
The dragged object.
format
The format.
Returns
GetDataFromObject(object, string, bool)
Gets the data from object.
Declaration
[SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "object")]
public static object GetDataFromObject(object draggedObject, string format, bool autoConvert)
Parameters
draggedObject
The dragged object.
format
The format.
autoConvert
If set to true [auto convert].
Returns
GetDataPresent(object, Type)
Indicates whether data of a certain format is present in the draggedObject parameter.
GetDataPresent(object, string)
Indicates whether data of a certain format is present in the draggedObject parameter.
GetDataPresent(object, string, bool)
Indicates whether data of a certain format is present in the draggedObject parameter.
Declaration
[SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "object")]
public static bool GetDataPresent(object draggedObject, string format, bool autoConvert)
Parameters
draggedObject
The dragged object.
format
The format.
autoConvert
If set to true [auto convert].
Returns
GetFormats(object)
Gets the formats.
GetFormats(object, bool)
Gets the formats.
Declaration
[SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "object")]
public static string[] GetFormats(object draggedObject, bool autoConvert)
Parameters
draggedObject
The dragged object.
autoConvert
If set to true [auto convert].
Returns
string[]
SetData(object, string, object)
Sets the data for the draggedObject parameter of a given format.
Declaration
[SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "object")]
public static void SetData(object draggedObject, string format, object value)
Parameters
draggedObject
The dragged object.
format
The format.
value
The value.