Class TickLengthProviderTypeConverter
Provides a way to create custom RadScheduleView time ruler tick lengths.
Inheritance
Namespace: Telerik.Windows.Controls.ScheduleView.Design
Assembly: Telerik.Windows.Controls.ScheduleView.dll
Syntax
public class TickLengthProviderTypeConverter : TypeConverter
Constructors
TickLengthProviderTypeConverter()
Declaration
public TickLengthProviderTypeConverter()
Methods
CanConvertFrom(ITypeDescriptorContext, Type)
Returns whether the source type is typeof(string).
Declaration
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters
System. The ITypeDescriptorContext. |
System. The source type to be checked. |
Returns
System. True if it is of type string, otherwise false. |
CanConvertTo(ITypeDescriptorContext, Type)
Returns whether the source type is typeof(ITickLengthProvider).
Declaration
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Parameters
System. The ITypeDescriptorContext. |
System. The source type to be checked. |
Returns
System. True if it is of type ITickLengthProvider, otherwise false. |
ConvertFrom(ITypeDescriptorContext, CultureInfo, Object)
Converts the value as string.
Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
System. The ITypeDescriptorContext. |
System. The CultureInfo to be used. |
System. The value to be converted. |
Returns
System.
|
ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)
Converts the value as string.
Declaration
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Parameters
System. The ITypeDescriptorContext. |
System. The CultureInfo to be used. |
System. The value to be converted. |
System.
|
Returns
System.
|
GetStandardValues(ITypeDescriptorContext)
Gets the collection of standard values of the default tick length provider keys.
Declaration
public override TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
Parameters
System.
|
Returns
System.
|
GetStandardValuesSupported(ITypeDescriptorContext)
Returns true if the value is supported.
Declaration
public override bool GetStandardValuesSupported(ITypeDescriptorContext context)
Parameters
System.
|
Returns
System.
|