Class DateTimeTypeConverter
Provides a converter to convert DateTime objects to and from other representations.
Inheritance
Namespace: Telerik.Windows.Controls.Calendar
Assembly: Telerik.Windows.Controls.Input.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.ComponentModel.ITypeDescriptorContext
context
The context. |
System.Type
sourceType
Type of the source. |
Returns
System.Boolean
|
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.ComponentModel.ITypeDescriptorContext
context
The context. |
System.Type
destinationType
The type you want to convert to. |
Returns
System.Boolean
True if this converter can perform the conversion; otherwise, false. |
Exceptions
System.ArgumentException
|
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.ComponentModel.ITypeDescriptorContext
context
The context. |
System.Globalization.CultureInfo
culture
The culture. |
System.Object
value
The value to convert to the type of this converter. |
Returns
System.Object
The converted value. |
Exceptions
System.NotSupportedException
The conversion cannot be performed. |