Class StringToDoubleConverter
Represents a value converter that converts strings into double values by using the double.TryParse method.
Inheritance
Namespace: Telerik.Windows.Controls.Converters
Assembly: Telerik.Windows.Controls.Chart.dll
Syntax
public class StringToDoubleConverter : TypeConverter
Constructors
StringToDoubleConverter()
Declaration
public StringToDoubleConverter()
Methods
CanConvertFrom(ITypeDescriptorContext, Type)
Returns whether the type converter can convert an object from the specified type to the type of this converter.
Declaration
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters
System. An object that provides a format context. |
System. The type you want to convert from. |
Returns
System. True if this converter can perform the conversion; otherwise, false. |
CanConvertTo(ITypeDescriptorContext, Type)
Returns whether the type converter can convert an object to the specified type.
Declaration
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Parameters
System. An object that provides a format context. |
System. The type you want to convert to. |
Returns
System. True if this converter can perform the conversion; otherwise, false. |
ConvertFrom(ITypeDescriptorContext, CultureInfo, Object)
Converts from the specified value to the intended conversion type of the converter.
Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
System. An object that provides a format context. |
System. The System. |
System. The value to convert to the type of this converter. |
Returns
System. The converted value. |
Exceptions
System. System. |
ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)
Converts the specified value object to the specified type.
Declaration
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Parameters
System. An object that provides a format context. |
System. The System. |
System. The object to convert. |
System. The type to convert the object to. |
Returns
System. The converted object. |
Exceptions
System. System. |