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.ComponentModel.ITypeDescriptorContext
context
An ITypeDescriptorContext that provides a format context. |
System.Type
sourceType
A Type that represents the type you wish to convert from. |
Returns
System.Boolean
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.ComponentModel.ITypeDescriptorContext
context
An ITypeDescriptorContext that provides a format context. |
System.Globalization.CultureInfo
culture
A CultureInfo that specifies the culture to which to convert. |
System.Object
value
The Object to convert. |
Returns
System.Object
An Object that represents the converted value. |