skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Interface IDragPayload

Provides a format independent mechanism for transferring data.

Namespace: Telerik.Windows.DragDrop.Behaviors
Assembly: Telerik.Windows.Controls.dll

Syntax

public interface IDragPayload

Properties

DataConverter

Gets a IDataConverter for providing additional formats the data to be converted to.

Declaration
DataConverter DataConverter { get; }
Property Value
DataConverter

Methods

GetData(String)

Retrieves a data object in a specified format; the data format is specified by a string.

Declaration
object GetData(string format)
Parameters
System.String format

A string that specifies the format in which to retrieve the data. See the System.Windows.DataFormats class for a set of predefined data formats.

Returns
System.Object

A data object that has the data in the specified format; or null, if the data is not available in the specified format.

GetData(String, Boolean)

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

Declaration
object GetData(string format, bool autoConvert)
Parameters
System.String format

A string that specifies the format in which to retrieve the data. See the System.Windows.DataFormats class for a set of predefined data formats.

System.Boolean autoConvert

True to attempt to automatically convert the data to the specified format; false to perform no data format conversion.If this parameter is false, the method returns data in the specified format if it is available; or returns null if the data is not available in the specified format.

Returns
System.Object

A data object that has the data in the specified format; or null, if the data is not available in the specified format.

GetData(Type)

Retrieves a data object in a specified format; the data format is specified by a System.Type object.

Declaration
object GetData(Type format)
Parameters
System.Type format

A System.Type object that specifies the format in which to retrieve the data. See the System.Windows.DataFormats class for a set of predefined data formats.

Returns
System.Object

A data object that has the data in the specified format; or null, if the data is not available in the specified format.

GetDataPresent(String)

Checks whether the data is available in, or can be converted to, a specified format; the data format is specified by a string.

Declaration
bool GetDataPresent(string format)
Parameters
System.String format

A string that specifies the format to check for. See the System.Windows.DataFormats class for a set of predefined data formats.

Returns
System.Boolean

True if the data is in, or can be converted to, the specified format; otherwise, false.

GetDataPresent(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.

Declaration
bool GetDataPresent(string format, bool autoConvert)
Parameters
System.String format

A string that specifies the format to check for. See the System.Windows.DataFormats class for a set of predefined data formats.

System.Boolean autoConvert

False to only check for the specified format; true to also check whether the data that is stored in this data object can be converted to the specified format.

Returns
System.Boolean

True if the data is in, or can be converted to, the specified format; otherwise, false.

GetDataPresent(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 System.Type object.

Declaration
bool GetDataPresent(Type format)
Parameters
System.Type format

A System.Type that specifies the format to check for.

Returns
System.Boolean

True if the data is in, or can be converted to, the specified format; otherwise, false.

GetFormats()

Returns a list of all formats that the data in this data object is stored in, or can be converted to.

Declaration
string[] GetFormats()
Returns
System.String[]

An array of strings, with each string specifying the name of a format that is supported by this data object.

GetFormats(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
string[] GetFormats(bool autoConvert)
Parameters
System.Boolean autoConvert

True to retrieve all formats that the data in this data object is stored in, or can be converted to; false to retrieve only the formats in which the data in this data object is stored (excludes formats that the data is not stored in, but can be automatically converted to).

Returns
System.String[]

An array of strings, with each string specifying the name of a format that is supported by this data object.

SetData(Object)

Stores the specified data in this data object, and automatically converts the data format from the source object type.

Declaration
void SetData(object data)
Parameters
System.Object data

The data to store in this data object.

SetData(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.

Declaration
void SetData(string format, object data)
Parameters
System.String format

A string that specifies the format in which to store the data. See the System.Windows.DataFormats class for a set of predefined data formats.

System.Object data

The data to store in this data object.

SetData(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.

Declaration
void SetData(string format, object data, bool autoConvert)
Parameters
System.String format

A string that specifies the format in which to store the data. See the System.Windows.DataFormats class for a set of predefined data formats.

System.Object data

The data to store in this data object.

System.Boolean autoConvert

True to allow the data to be converted to another format on retrieval; false to prohibit the data from being converted to another format on retrieval.

SetData(Type, Object)

Stores the specified data in this data object, using one or more specified data formats. The data format is specified by a System.Type class.

Declaration
void SetData(Type format, object data)
Parameters
System.Type format

A System.Type that specifies the format in which to store the data.

System.Object data

The data to store in this data object.

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.