SizeConverter
Converts string dimensions to Size values.
String input is parsed with invariant culture; other conversions are delegated to the base converter.
Definition
Namespace:Telerik.WinControls.Spreadsheet.UI
Assembly:Telerik.WinControls.RadSpreadsheet.dll
Syntax:
public sealed class SizeConverter : TypeConverter
Inheritance: objectTypeConverterSizeConverter
Inherited Members
Constructors
public SizeConverter()
Methods
Determines whether the specified type can be converted to a size.
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
The conversion context passed to the base converter.
sourceTypeTypeThe type to convert from.
Returns:true for strings or types supported by the base converter.
Overrides:
Converts a string to a size or delegates other values to the base converter.
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
The conversion context passed to the base converter.
cultureCultureInfoThe culture passed to the base converter; string dimensions use invariant culture.
valueobjectThe value to convert.
Returns:A parsed Size for string input, or the base converter's result.
Exceptions: NotSupportedExceptionvalue is null.
Overrides: