Class LengthConverter
Converter class for converting instances of other types to and from coordinate representing length.
public class LengthConverter : BaseTypeConverter
- Inheritance
-
LengthConverter
Methods
- CanConvertFrom(ITypeDescriptorContext?, Type?)
Returns whether this converter can convert an object of the given type to the type of this converter, using the specified context.
- CanConvertTo(ITypeDescriptorContext?, Type?)
Returns whether this converter can convert the object to the specified type, using the specified context.
- ConvertFrom(ITypeDescriptorContext?, CultureInfo?, object)
Converts the given object to the type of this converter, using the specified context and culture information.
- ConvertTo(ITypeDescriptorContext?, CultureInfo?, object?, Type)
Converts the given value object to the specified type, using the specified context and culture information.
- FromString(string, CultureInfo?)
Converts a string representation of a coordinate value, including an optional unit, into a float object.
- ToString(float, CultureInfo)
Converts the specified coordinate to its string representation using the specified culture-specific formatting.