在Winform中需要存储某控件的Color属性,存储的是string字符串,

然后再对控件进行赋值时需要将string转换成Color。

实现

myPane.YAxis.Color = System.Drawing.ColorTranslator.FromHtml(yList[0].Color);

 

相关文章:

  • 2022-12-23
  • 2021-07-11
  • 2021-05-17
  • 2021-05-27
  • 2022-12-23
  • 2021-12-22
  • 2021-06-07
猜你喜欢
  • 2022-01-10
  • 2022-12-23
  • 2021-07-21
  • 2021-06-13
  • 2021-11-11
  • 2022-03-01
相关资源
相似解决方案