Click or drag to resize
IDragPayload Interface
Provides a format independent mechanism for transferring data.

Namespace: Telerik.Windows.DragDrop.Behaviors
Assembly: Telerik.Windows.Controls (in Telerik.Windows.Controls.dll) Version: 2017.2.614.40 (2017.2.614.40)
Syntax
public interface IDragPayload

The IDragPayload type exposes the following members.

Methods
  NameDescription
Public methodGetData(String)
Retrieves a data object in a specified format; the data format is specified by a string.
Public methodGetData(Type)
Retrieves a data object in a specified format; the data format is specified by a Type object.
Public methodGetData(String, Boolean)
Retrieves a data object in a specified format, and optionally, converts the data to the specified format.
Public methodGetDataPresent(String)
Checks whether the data is available in, or can be converted to, a specified format; the data format is specified by a string.
Public methodGetDataPresent(Type)
Checks to see whether the data is available in, or can be converted to, a specified format. The data format is specified by a Type object.
Public methodGetDataPresent(String, Boolean)
Checks whether the data is available in, or can be converted to, a specified format. If the data is not already available in the specified format, a Boolean flag indicates whether to check if the data can be converted to the specified format.
Public methodGetFormats
Returns a list of all formats that the data in this data object is stored in, or can be converted to.
Public methodGetFormats(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.
Public methodSetData(Object)
Stores the specified data in this data object, and automatically converts the data format from the source object type.
Public methodSetData(String, Object)
Stores the specified data in this data object, using one or more specified data formats. The data format is specified by a string.
Public methodSetData(Type, Object)
Stores the specified data in this data object, using one or more specified data formats. The data format is specified by a Type class.
Public methodSetData(String, Object, Boolean)
Stores the specified data in this data object, using one or more specified data formats. This overload includes a Boolean flag to indicate whether the data may be converted to another format on retrieval.
Top
Properties
  NameDescription
Public propertyDataConverter
Gets a IDataConverter for providing additional formats the data to be converted to.
Top
See Also