Class DataConverter
Provides the basic methods for converting the data in a IDataObject.
Inheritance
Namespace: Telerik.Windows.DragDrop.Behaviors
Assembly: Telerik.Windows.Controls.dll
Syntax
public abstract class DataConverter : Object
Constructors
DataConverter()
Declaration
protected DataConverter()
Methods
CanConvertTo(String)
Checks to see whether the data can be converted to a specified format.
Declaration
public virtual bool CanConvertTo(string format)
Parameters
System.String
format
|
Returns
System.Boolean
|
CanConvertTo(Type)
Checks to see whether the data can be converted to a specified format. The data format is specified by a System.Type object.
Declaration
public bool CanConvertTo(Type format)
Parameters
System.Type
format
|
Returns
System.Boolean
|
ConvertTo(Object, String)
Retrieves a data object in a specified format; the data format is specified by a string.
Declaration
public abstract object ConvertTo(object data, string format)
Parameters
System.Object
data
|
System.String
format
|
Returns
System.Object
|
ConvertTo(Object, Type)
Retrieves a data object in a specified format; the data format is specified by a System.Type object.
Declaration
public object ConvertTo(object data, Type type)
Parameters
System.Object
data
|
System.Type
type
|
Returns
System.Object
|
GetConvertToFormats()
Returns a list of all formats that the data in this data object can be converted to.
Declaration
public abstract string[] GetConvertToFormats()
Returns
System.String[]
|