ClassDecimalTypeConverter
Provides a type converter for converting Decimal values to and from other types.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.dll
Syntax:
public class DecimalTypeConverter : TypeConverter
Inheritance: objectTypeConverterDecimalTypeConverter
Inherited Members
Constructors
DecimalTypeConverter()
Declaration
public DecimalTypeConverter()
Methods
CanConvertFrom(ITypeDescriptorContext, Type)
Determines whether this instance [can convert from] the specified context.
Declaration
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
CanConvertTo(ITypeDescriptorContext, Type)
Returns whether the type converter can convert an object to the specified type to the type of this converter.
Declaration
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Parameters
context
The context.
destinationType
The type you want to convert to.
Returns
True if this converter can perform the conversion; otherwise, false.
Exceptions
destinationType is null.
Overrides
ConvertFrom(ITypeDescriptorContext, CultureInfo, object)
Converts from the specified value to the type of this converter.
Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
context
The context.
culture
The culture.
value
The value to convert to the type of this converter.
Returns
The converted value.
Exceptions
The conversion cannot be performed.
Overrides
ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)
Converts from the specified value to the type of this converter.
Declaration
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Parameters
context
The context.
culture
The culture.
value
The value.
destinationType
Type of the destination.
Returns
Overrides