ClassDateTimeTypeConverter
Provides a converter to convert DateTime objects to and from other representations.
Definition
Namespace:Telerik.Windows.Controls.Calendar
Assembly:Telerik.Windows.Controls.Input.dll
Syntax:
public class DateTimeTypeConverter : TypeConverter
Inheritance: objectTypeConverterDateTimeTypeConverter
Inherited Members
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
context
The context.
sourceType
Type of the source.
Returns
true if this instance [can convert from] the specified context; otherwise, false.
Overrides
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
context
The context.
destinationType
The type you want to convert to.
Returns
True if this converter can perform the conversion; otherwise, false.
Exceptions
destinationType is null.
Overrides
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
context
The context.
culture
The culture.
value
The value to convert to the type of this converter.
Returns
The converted value.
Exceptions
The conversion cannot be performed.
Overrides