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.ComponentModel.ITypeDescriptorContext
context
The ITypeDescriptorContext. |
System.Type
sourceType
The source type to be checked. |
Returns
System.Boolean
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.ComponentModel.ITypeDescriptorContext
context
The ITypeDescriptorContext. |
System.Type
destinationType
The source type to be checked. |
Returns
System.Boolean
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.ComponentModel.ITypeDescriptorContext
context
The ITypeDescriptorContext. |
System.Globalization.CultureInfo
culture
The CultureInfo to be used. |
System.Object
value
The value to be converted. |
Returns
System.Object
|
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.ComponentModel.ITypeDescriptorContext
context
The ITypeDescriptorContext. |
System.Globalization.CultureInfo
culture
The CultureInfo to be used. |
System.Object
value
The value to be converted. |
System.Type
destinationType
|
Returns
System.Object
|
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.ComponentModel.ITypeDescriptorContext
context
|
Returns
System.ComponentModel.TypeConverter.StandardValuesCollection
|
GetStandardValuesSupported(ITypeDescriptorContext)
Returns true if the value is supported.
Declaration
public override bool GetStandardValuesSupported(ITypeDescriptorContext context)
Parameters
System.ComponentModel.ITypeDescriptorContext
context
|
Returns
System.Boolean
|