Remarks: Allows for conversion from a string to a SizeF.
obsolete. Use TypeDescriptor.GetConverter instead
Methods
CanConvertFrom
#Determines if this converter can convert from the specified
sourceTypeParameters:
| context (ITypeDescriptorContext) | Conversion context |
| sourceType (Type) | Type to convert from |
Returns: True if this converter can convert from the specified type, false otherwise
Overrides: 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
Determines whether this instance can convert to the specified context destinationType.
Parameters:
| context (ITypeDescriptorContext) | Context. |
| destinationType (Type) | Destination type. |
Returns:
true if this instance can convert to the specified context destinationType; otherwise, false.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)
Converts the specified value to a SizeF
Parameters:
| context (ITypeDescriptorContext) | Conversion context |
| culture (CultureInfo) | Culture to perform the conversion |
| value (object) | Value to convert |
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.
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.