ClassThemableColorTypeConverter
Type converter for ThemableColor values used in document models; parses named colors and ARGB hex strings for serialization and UI binding.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Utilities
Assembly:Telerik.Windows.Documents.Core.dll
Syntax:
public class ThemableColorTypeConverter : TypeConverter
Inheritance: objectTypeConverterThemableColorTypeConverter
Inherited Members
Constructors
ThemableColorTypeConverter()
Initializes a new instance of the ThemableColorTypeConverter class.
Declaration
public ThemableColorTypeConverter()
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.
Declaration
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters
context
An ITypeDescriptorContext that provides a format context.
sourceType
A Type that represents the type you want to convert from.
Returns
true if this converter can perform the conversion; otherwise, false.
Overrides
CanConvertTo(ITypeDescriptorContext, Type)
Returns whether this converter can convert the object to the specified type, using the specified context.
Declaration
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Parameters
context
An ITypeDescriptorContext that provides a format context.
destinationType
A Type that represents the type you want to convert to.
Returns
true if this converter can perform the conversion; otherwise, false.
Overrides
ConvertFrom(ITypeDescriptorContext, CultureInfo, object)
Converts the given object to the type of this converter, using the specified context and culture information.
Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
context
An ITypeDescriptorContext that provides a format context.
culture
The CultureInfo to use as the current culture.
value
The object to convert.
Returns
An object that represents the converted value.
Exceptions
The conversion cannot be performed.
Overrides