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

Provides a trust settings independent way to retrieve drag data.

Definition

Namespace:Telerik.Windows.DragDrop.Behaviors

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public static class DataObjectHelper

Inheritance: objectDataObjectHelper

Methods

Retrieves a data object in a specified format, and optionally, converts the data to the specified format.

C#
public static object GetData(object dataObject, string format, bool autoConvert)
Parameters:dataObjectobjectformatstringautoConvertboolReturns:

object

Retrieves a data object in a specified format, and optionally, converts the data to the specified format.

C#
public static object GetData(object dataObject, Type format, bool autoConvert)
Parameters:dataObjectobjectformatTypeautoConvertboolReturns:

object

Retrieves a data object in a specified format, and optionally, converts the data to the specified format.

C#
public static bool GetDataPresent(object dataObject, string format, bool autoConvert)
Parameters:dataObjectobjectformatstringautoConvertboolReturns:

bool

Retrieves a data object in a specified format, and optionally, converts the data to the specified format.

C#
public static bool GetDataPresent(object dataObject, Type format, bool autoConvert)
Parameters:dataObjectobjectformatTypeautoConvertboolReturns:

bool

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.

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

string[]