Class DateTimeTypeConverter
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll
Syntax
public class DateTimeTypeConverter : TypeConverter
Constructors
DateTimeTypeConverter()
Declaration
public DateTimeTypeConverter()
Methods
CanConvertFrom(ITypeDescriptorContext, Type)
Determines whether this instance [can convert from] the specified context.
Declaration
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters
System. The context. |
System. Type of the source. |
Returns
System.
|
CanConvertTo(ITypeDescriptorContext, Type)
Returns whether the type converter can convert an object to the specified type to the type of this converter.
Declaration
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Parameters
System. The context. |
System. The type you want to convert to. |
Returns
System. True if this converter can perform the conversion; otherwise, false. |
Exceptions
System.
|
ConvertFrom(ITypeDescriptorContext, CultureInfo, Object)
Converts from the specified value to the type of this converter.
Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
System. The context. |
System. The culture. |
System. The value to convert to the type of this converter. |
Returns
System. The converted value. |
Exceptions
System. The conversion cannot be performed. |
ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)
Converts from the specified value to the type of this converter.
Declaration
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Parameters
System. The context. |
System. The culture. |
System. The value. |
System. Type of the destination. |
Returns
System.
|