예제 #1
0
 // Overrides the ConvertFrom method of TypeConverter.
 public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
 {
     if (value is string)
     {
         return(RichText.ParseText((string)value));
     }
     return(base.ConvertFrom(context, culture, value));
 }