在Winform中需要存储某控件的Color属性,存储的是string字符串,
然后再对控件进行赋值时需要将string转换成Color。
myPane.YAxis.Color = System.Drawing.ColorTranslator.FromHtml(yList[0].Color);