Class ImageConverter
Provides a type converter to convert Image objects from String representation.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll
Syntax
public class ImageConverter : TypeConverter
Constructors
ImageConverter()
Declaration
public ImageConverter()
Methods
CanConvertFrom(ITypeDescriptorContext, Type)
Overloaded. Returns whether this converter can convert an object of one type to the type of this converter.
Declaration
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters
System. An ITypeDescriptorContext that provides a format context. |
System. A Type that represents the type you wish to convert from. |
Returns
System. true if this object can perform the conversion; otherwise, false. |
ConvertFrom(ITypeDescriptorContext, CultureInfo, Object)
Converts the given value object to a Image object.
Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
System. An ITypeDescriptorContext that provides a format context. |
System. A CultureInfo that specifies the culture to which to convert. |
System. The Object to convert. |
Returns
System. An Object that represents the converted value. |