Class ColorConverter
Converts colors from one data type to another. Access this class through the TypeDescriptor.
public class ColorConverter : TypeConverter
- Inheritance
-
ColorConverter
Methods
- CanConvertFrom(ITypeDescriptorContext?, Type)
Determines if this converter can convert an object in the given source type to the native type of the converter.
- CanConvertTo(ITypeDescriptorContext?, Type?)
Returns a value indicating whether this converter can convert an object to the given destination type using the context.
- ConvertFrom(ITypeDescriptorContext?, CultureInfo?, object)
Converts the given object to the converter's native type.
- ConvertTo(ITypeDescriptorContext?, CultureInfo?, object?, Type)
Converts the specified object to another type.
- GetStandardValues(ITypeDescriptorContext?)
Retrieves a collection containing a set of standard values for the data type for which this validator is designed. This will return null if the data type does not support a standard set of values.
- GetStandardValuesSupported(ITypeDescriptorContext?)
Determines if this object supports a standard set of values that can be chosen from a list.