Class StringToImageTypeConverter
Converter class that converts string type into image type.
Inheritance
System.Object
StringToImageTypeConverter
Namespace: Syncfusion.Windows.Shared
Assembly: Syncfusion.Shared.Wpf.dll
Syntax
public sealed class StringToImageTypeConverter : TypeConverter
Constructors
StringToImageTypeConverter()
Declaration
public StringToImageTypeConverter()
Methods
ConvertFrom(ITypeDescriptorContext, CultureInfo, Object)
Converts the System.String object to the System.Globalization.CultureInfo.
Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.ITypeDescriptorContext | context | Do not used. |
System.Globalization.CultureInfo | culture | do not used. |
System.Object | value | The System.String object to convert. |
Returns
Type | Description |
---|---|
System.Object | The converted value. |
ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)
Converts the given value object to the specified type, using the specified context and culture information.
Declaration
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.ITypeDescriptorContext | context | A System.ComponentModel.ITypeDescriptorContext that provides a format context. |
System.Globalization.CultureInfo | culture | A System.Globalization.CultureInfo. |
System.Object | value | The ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type). |
System.Type | destinationType | The System.Type to convert the value parameter to. |
Returns
Type | Description |
---|---|
System.Object | The converted value. |