RectConverter
Converts string rectangle descriptions to Rect values using invariant culture.
Definition
Namespace:Telerik.WinControls.Spreadsheet.UI
Assembly:Telerik.WinControls.RadSpreadsheet.dll
Syntax:
public sealed class RectConverter : TypeConverter
Inheritance: objectTypeConverterRectConverter
Inherited Members
Constructors
public RectConverter()
Methods
Determines whether strings or types supported by the base converter can be converted to a rectangle.
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 rectangle 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 values use invariant culture.
valueobjectThe value to convert.
Returns:A parsed Rect for string input, or the base converter's result.
Exceptions: NotSupportedExceptionvalue is null.
Overrides: