ClassTimeSpanConverter
Class
Converts a time-span string representation to a TimeSpan object.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.Input.dll
Syntax:
cs-api-definition
public class TimeSpanConverter : TypeConverter
Inheritance: objectTypeConverterTimeSpanConverter
Inherited Members
Constructors
TimeSpanConverter()
Declaration
cs-api-definition
public TimeSpanConverter()
Methods
CanConvertFrom(ITypeDescriptorContext, Type)
Determines whether this instance [can convert from] the specified context.
Declaration
cs-api-definition
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
ConvertFrom(ITypeDescriptorContext, CultureInfo, object)
Converts from the specified value to the type of this converter.
Declaration
cs-api-definition
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
context
The context.
culture
The culture.
value
The value.
Returns
Overrides