我想通过使用 VS 2012 的 windows 服务和 word 的互操作程序集为 Word 2010 中的图表中的所有系列设置不同的颜色。
我知道将其设置为:
Series series1.Format.Line.ForeColor.RGB = (int)XlRgbColor.xlDarkGoldenrod;
但我想设置精确的 RGB 值,例如(111,154,169),而不是一些预定义的颜色(甚至不是 hexValues)。
我正在使用 System.Drawing.Color 结构找到一些方法来做到这一点,但徒劳无功。