obsolete. Use TypeDescriptor.GetConverter instead
Fields
Methods
CanConvertFrom
#Gets a value indicating that this converter can convert from the source type to an image
Parameters:
| context (ITypeDescriptorContext) | Conversion context |
| sourceType (Type) | Type to convert from |
Returns: True if this converter can handle converting from the specified
sourceType to an imageOverrides: TypeConverter.CanConvertFrom
CanConvertFrom
Determines whether this instance can convert from the specified sourceType.
Parameters:
| sourceType (Type) | Source type to convert from. |
Returns:
true if this instance can convert from the specified sourceType; otherwise, false.CanConvertTo
#Gets a value indicating that this converter can convert to the specified type.
Parameters:
| context (ITypeDescriptorContext) | Conversion context |
| destinationType (Type) | Type to convert to |
Returns: True if this converter can convert to the specified
destinationType, otherwise false.Overrides: TypeConverter.CanConvertTo
CanConvertTo
Determines whether this instance can convert to the specified destinationType.
Parameters:
| destinationType (Type) | Destination type. |
Returns:
true if this instance can convert to the specified destinationType; otherwise, false.ConvertFrom
#public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Performs the conversion from the given
value to an Image objectParameters:
| context (ITypeDescriptorContext) | Conversion context |
| culture (CultureInfo) | Culture to perform the conversion |
| value (object) | Value to convert to an image |
Returns: A new instance of an image, or null if it cannot be converted
Overrides: TypeConverter.ConvertFrom
Parameters:
| o (object) | Object to convert. |
Returns: The converted object.
ConvertFromInvariantString
Converts from an invariant string.
Parameters:
| context (ITypeDescriptorContext) | Context. |
| text (string) | Text to convert. |
Returns: The from invariant string.
ConvertFromInvariantString
Converts from an invariant string.
Parameters:
| text (string) | Text to convert. |
Returns: The from invariant string.
ConvertFromString
Converts from string.
Parameters:
| context (ITypeDescriptorContext) | Context. |
| culture (CultureInfo) | Culture. |
| text (string) | Text to convert. |
Returns: The converted object.
ConvertFromString
Converts from string.
Parameters:
| context (ITypeDescriptorContext) | Context. |
| text (string) | Text to convert. |
Returns: The converted object.
Parameters:
| text (string) | Text to convert. |
Returns: The converted object.
ConvertTo
public virtual object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Converts to the specified type.
Parameters:
| context (ITypeDescriptorContext) | Context. |
| culture (CultureInfo) | Culture. |
| value (object) | Value to convert. |
| destinationType (Type) | Destination type to convert to. |
Returns: The converted object.
Returns: The converted object.
ConvertToInvariantString
Converts to invariant string.
Parameters:
| context (ITypeDescriptorContext) | Context. |
| value (object) | Value to convert. |
Returns: The converted string.
ConvertToInvariantString
Converts to an invariant string.
Parameters:
| value (object) | Value to convert. |
Returns: The converted string.
ConvertToString
Converts to a string.
Parameters:
| context (ITypeDescriptorContext) | Context. |
| culture (CultureInfo) | Culture. |
| value (object) | Value to convert. |
Returns: The converted string.
ConvertToString
Converts to a string.
Parameters:
| context (ITypeDescriptorContext) | Context. |
| value (object) | Value to convert. |
Returns: The converted string.
Parameters:
| value (object) | Value to convert. |
Returns: The converted string.
GetConvertFromException
Gets the exception when converting from a value.
Parameters:
| value (object) | Value converted from. |
Returns: The convert from exception.
GetConvertToException
Gets the exception when converting to a value.
Returns: The convert to exception.
IsIcon
#Determines whether the specified fileName is an icon (ends with .ico)
Parameters:
| fileName (string) | File name. |
Returns:
true if the fileName is an icon; otherwise, false.IsValid
Determines whether this instance is valid the specified context value.
Parameters:
| context (ITypeDescriptorContext) | Context. |
| value (object) | Value. |
Returns:
true if this instance is valid the specified context value; otherwise, false.IsValid
Determines whether this instance is valid the specified value.
Parameters:
| value (object) | Value. |
Returns:
true if this instance is valid the specified value; otherwise, false.