public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) { if (value is string) { if (value.ToString().ToLower() == "auto") return 0; return Convert.ToInt32(value); } return base.ConvertFrom(context, culture, value); }