Class DateTimeIntervalConverter
Provides a type converter to convert Date
Inheritance
Namespace: Telerik.Windows.Controls.ScheduleView.Design
Assembly: Telerik.Windows.Controls.ScheduleView.dll
Syntax
public class DateTimeIntervalConverter : TypeConverter
Constructors
DateTimeIntervalConverter()
Declaration
public DateTimeIntervalConverter()
Methods
CanConvertFrom(ITypeDescriptorContext, Type)
Gets a value indicating whether this converter can convert an object in the given
source type to a Date
Declaration
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters
System. An System. |
System. A System. |
Returns
System. True if this converter can perform the conversion; otherwise, false. |
CanConvertTo(ITypeDescriptorContext, Type)
Returns whether this converter can convert the object to the specified type, using the specified context.
Declaration
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Parameters
System. An System. |
System. A System. |
Returns
System. True if this converter can perform the conversion; otherwise, false. |
Exceptions
System.
|
System.
|
ConvertFrom(ITypeDescriptorContext, CultureInfo, Object)
Converts the given object to a Date
Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
System. An System. |
System. An optional System. |
System. The System. |
Returns
System. An System. |
Exceptions
System. The conversion cannot be performed. |
System.
|
System.
|
System.
|
System. Given values for Days or Months in |
ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)
Converts the given object to another type.
Declaration
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Parameters
System. A formatter context. |
System. The culture into which |
System. The object to convert. |
System. The type to convert the object to. |
Returns
System. The converted object. |
Exceptions
System.
|