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