使用COM控件时颜色值通常为OLE_COLOR类型,数据类型为uint或int,通常需要将Color类转换过去。

可用方法之一为:用ColorTranslator类的ToOle。

style.BrushColor = (uint)ColorTranslator.ToOle(Color.Yellow); 



相关文章:

  • 2022-12-23
  • 2021-08-16
  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-05
  • 2021-08-25
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案