ClassIntervalSpansConverter
Converts a IntervalSpanCollection object to or from its string representations.
Definition
Namespace:Telerik.Windows.Controls.TimeBar
Assembly:Telerik.Windows.Controls.DataVisualization.dll
Syntax:
public class IntervalSpansConverter : TypeConverter
Inheritance: objectTypeConverterIntervalSpansConverter
Inherited Members
Constructors
IntervalSpansConverter()
Declaration
public IntervalSpansConverter()
Methods
CanConvertFrom(ITypeDescriptorContext, Type)
Returns whether this converter can convert an object of the given type to the type of this converter, using the specified context.
Declaration
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters
context
An ITypeDescriptorContext that provides a format context.
sourceType
A Type that represents the type you want to convert from.
Returns
true if this converter can perform the conversion; otherwise, false.
Overrides
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
context
An ITypeDescriptorContext that provides a format context.
destinationType
A Type that represents the type you want to convert to.
Returns
true if this converter can perform the conversion; otherwise, false.
Overrides
ConvertFrom(ITypeDescriptorContext, CultureInfo, object)
Converts the given object to the type of this converter, using the specified context and culture information.
Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
context
An ITypeDescriptorContext that provides a format context.
culture
The CultureInfo to use as the current culture.
value
The object to convert.
Returns
An object that represents the converted value.
Overrides
ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)
Converts the given value object to the specified type, using the specified context and culture information.
Declaration
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Parameters
context
An ITypeDescriptorContext that provides a format context.
culture
A CultureInfo. If null is passed, the current culture is assumed.
value
The object to convert.
destinationType
The Type to convert the value parameter to.
Returns
An object that represents the converted value.
Overrides