Class ColorConverter
Inheritance
TypeConverter
ColorConverter
Assembly: Xareus.Unity.dll
Syntax
[TypeConverterFor(typeof(Color))]
public class ColorConverter : TypeConverter
Methods
CanConvertFrom(ITypeDescriptorContext, Type)
Declaration
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters
Type |
Name |
Description |
ITypeDescriptorContext |
context |
|
Type |
sourceType |
|
Returns
Overrides
System.ComponentModel.TypeConverter.CanConvertFrom(System.ComponentModel.ITypeDescriptorContext, System.Type)
CanConvertTo(ITypeDescriptorContext, Type)
Declaration
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Parameters
Type |
Name |
Description |
ITypeDescriptorContext |
context |
|
Type |
destinationType |
|
Returns
Overrides
System.ComponentModel.TypeConverter.CanConvertTo(System.ComponentModel.ITypeDescriptorContext, System.Type)
ConvertFrom(ITypeDescriptorContext, CultureInfo, object)
Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
Type |
Name |
Description |
ITypeDescriptorContext |
context |
|
CultureInfo |
culture |
|
object |
value |
|
Returns
Overrides
System.ComponentModel.TypeConverter.ConvertFrom(System.ComponentModel.ITypeDescriptorContext, System.Globalization.CultureInfo, object)
ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)
Declaration
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Parameters
Type |
Name |
Description |
ITypeDescriptorContext |
context |
|
CultureInfo |
culture |
|
object |
value |
|
Type |
destinationType |
|
Returns
Overrides
System.ComponentModel.TypeConverter.ConvertTo(System.ComponentModel.ITypeDescriptorContext, System.Globalization.CultureInfo, object, System.Type)