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