TypeConverter for SKColor: edits colors as "#AARRGGBB" hex strings in the PropertyGrid.

Members

MemberKindDescription
override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)MethodGets or sets the can convert from.
override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)MethodGets or sets the can convert to.
override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)MethodGets or sets the convert from.
override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)MethodGets or sets the convert to.
static SKColor Parse(string text)MethodParses "#AARRGGBB", "#RRGGBB", or a named color; invalid input returns transparent.
static string Format(SKColor color)MethodFormats a color as "#AARRGGBB".

Related