Class
DataConverter

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

Definition

Namespace:Telerik.Windows.DragDrop.Behaviors

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
public abstract class DataConverter

Inheritance: objectDataConverter

Derived Classes: GanttDataConverter

Constructors

DataConverter()

Declaration

cs-api-definition
protected DataConverter()

Methods

CanConvertTo(Type)

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

Declaration

cs-api-definition
public bool CanConvertTo(Type format)

Parameters

format

Type

Returns

bool

CanConvertTo(string)

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

Declaration

cs-api-definition
public virtual bool CanConvertTo(string format)

Parameters

format

string

Returns

bool

ConvertTo(object, Type)

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

Declaration

cs-api-definition
public object ConvertTo(object data, Type type)

Parameters

data

object

type

Type

Returns

object

ConvertTo(object, string)

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

Declaration

cs-api-definition
public abstract object ConvertTo(object data, string format)

Parameters

data

object

format

string

Returns

object

GetConvertToFormats()

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

Declaration

cs-api-definition
public abstract string[] GetConvertToFormats()

Returns

string[]