Represents a value converter that converts strings into double values by using the double.TryParse method.
Definition
Namespace:Telerik.Windows.Controls.Converters
Assembly:Telerik.Windows.Controls.Chart.dll
Syntax:
public class StringToDoubleConverter : TypeConverter
Inheritance: objectTypeConverterStringToDoubleConverter
Inherited Members
Constructors
public StringToDoubleConverter()
Methods
Returns whether the type converter can convert an object from the specified type to the type of this converter.
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
An object that provides a format context.
sourceTypeTypeThe type you want to convert from.
Returns:True if this converter can perform the conversion; otherwise, false.
Overrides:
Returns whether the type converter can convert an object to the specified type.
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
An object that provides a format context.
destinationTypeTypeThe type you want to convert to.
Returns:True if this converter can perform the conversion; otherwise, false.
Overrides:
Converts from the specified value to the intended conversion type of the converter.
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
An object that provides a format context.
cultureCultureInfoThe CultureInfo to use as the current culture.
valueobjectThe value to convert to the type of this converter.
Returns:The converted value.
Exceptions:ConvertFrom(ITypeDescriptorContext, CultureInfo, object) not implemented in base TypeConverter.
Overrides:
Converts the specified value object to the specified type.
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
An object that provides a format context.
cultureCultureInfoThe CultureInfo to use as the current culture.
valueobjectThe object to convert.
destinationTypeTypeThe type to convert the object to.
Returns:The converted object.
Exceptions:ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type) not implemented in base TypeConverter.
Overrides: