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

Provides the basic methods for converting the data in a IDataObject.

Definition

Namespace:Telerik.Windows.DragDrop.Behaviors

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public abstract class DataConverter

Inheritance: objectDataConverter

Derived Classes: GanttDataConverter

Constructors

C#
protected DataConverter()

Methods

Checks to see whether the data can be converted to a specified format.

C#
public virtual bool CanConvertTo(string format)
Parameters:formatstringReturns:

bool

Checks to see whether the data can be converted to a specified format. The data format is specified by a Type object.

C#
public bool CanConvertTo(Type format)
Parameters:formatTypeReturns:

bool

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

C#
public abstract object ConvertTo(object data, string format)
Parameters:dataobjectformatstringReturns:

object

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

C#
public object ConvertTo(object data, Type type)
Parameters:dataobjecttypeTypeReturns:

object

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

C#
public abstract string[] GetConvertToFormats()
Returns:

string[]