Class DataObjectHelper
Provides a trust settings independent way to retrieve drag data.
Inheritance
Namespace: Telerik.Windows.DragDrop.Behaviors
Assembly: Telerik.Windows.Controls.dll
Syntax
public static class DataObjectHelper : Object
Methods
GetData(Object, String, Boolean)
Retrieves a data object in a specified format, and optionally, converts the data to the specified format.
Declaration
public static object GetData(object dataObject, string format, bool autoConvert)
Parameters
System.Object
dataObject
|
System.String
format
|
System.Boolean
autoConvert
|
Returns
System.Object
|
GetData(Object, Type, Boolean)
Retrieves a data object in a specified format, and optionally, converts the data to the specified format.
Declaration
public static object GetData(object dataObject, Type format, bool autoConvert)
Parameters
System.Object
dataObject
|
System.Type
format
|
System.Boolean
autoConvert
|
Returns
System.Object
|
GetDataPresent(Object, String, Boolean)
Retrieves a data object in a specified format, and optionally, converts the data to the specified format.
Declaration
public static bool GetDataPresent(object dataObject, string format, bool autoConvert)
Parameters
System.Object
dataObject
|
System.String
format
|
System.Boolean
autoConvert
|
Returns
System.Boolean
|
GetDataPresent(Object, Type, Boolean)
Retrieves a data object in a specified format, and optionally, converts the data to the specified format.
Declaration
public static bool GetDataPresent(object dataObject, Type format, bool autoConvert)
Parameters
System.Object
dataObject
|
System.Type
format
|
System.Boolean
autoConvert
|
Returns
System.Boolean
|
GetFormats(Object, Boolean)
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
public static string[] GetFormats(object dataObject, bool autoConvert)
Parameters
System.Object
dataObject
|
System.Boolean
autoConvert
|
Returns
System.String[]
|